#7E22CE

Purple

#7E22CEPurple

Luminance

0.100

Category

Purple

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#7E22CE
No #
7E22CE

RGB

RGB
rgb(126, 34, 206)
Values
R:126 G:34 B:206

HSL

HSL
hsl(272, 72%, 47%)
Values
H:272° S:72% L:47%

HSV / HSB

HSV
hsv(272, 83%, 81%)
Values
H:272° S:83% V:81%

CMYK

CMYK
cmyk(39%, 83%, 0%, 19%)
Values
C:39 M:83 Y:0 K:19

LAB

LAB
lab(38, 67, -70)
Values
L:38 a:67 b:-70

OKLCH

OKLCH
oklch(49.6% 0.237 301.9)
Values
L:49.6% C:0.237 H:301.9°

Code Formats

CSS
color: #7E22CE;
Swift
UIColor(red: 0.494, green: 0.133, blue: 0.808, alpha: 1.0)
Kotlin
Color(0xFF7E22CE)
Flutter
Color(0xFF7E22CE)
Android
#FF7E22CE

Contrast Analysis

WCAG compliance with grayscale colors

On White

6.98:1

AA

On Black

3.01:1

AA-large

Grayscale Contrast

Aa

0%

3.0

AA-large
Aa

10%

2.5

Fail
Aa

20%

1.8

Fail
Aa

30%

1.2

Fail
Aa

40%

1.2

Fail
Aa

50%

1.7

Fail
Aa

60%

2.5

Fail
Aa

70%

3.3

AA-large
Aa

80%

4.3

AA-large
Aa

90%

5.5

AA
Aa

100%

7.0

AA

Best Grayscale Contrast

#FFFFFF with ratio 6.98:1

Aa

Color Harmonies

Harmonious color combinations

complementary

Two colors opposite on the color wheel (180°)

split-complementary

Base color + two colors adjacent to its complement

triadic

Three colors evenly spaced (120° apart)

tetradic

Four colors evenly spaced (90° apart)

analogous

Three colors adjacent on the color wheel (30° apart)

Color Variations

Tints, shades, tones, and full scale

Color Scale (50-900)

50

100

200

300

400

500

600

700

800

900

Tints (Lighter)

Shades (Darker)

Tones (Desaturated)

Gradients (OKLCH)

Primary

90°
CSS
linear-gradient(90deg, #AF6EE7 0%, #481376 100%)
OKLCH
linear-gradient(90deg, oklch(65.9% 0.182 306.9) 0%, oklch(33.6% 0.154 302.7) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #9832F1 0%, #6D03C9 100%)
OKLCH
linear-gradient(135deg, oklch(56.8% 0.261 302.7) 0%, oklch(45.6% 0.245 297.7) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #7E22CE 0%, #72CE22 100%)
OKLCH
linear-gradient(90deg, oklch(49.6% 0.237 301.9) 0%, oklch(76.4% 0.212 134.8) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #2722CE 0%, #7E22CE 50%, #CE22C8 100%)
OKLCH
linear-gradient(90deg, oklch(41.8% 0.245 270.0) 0%, oklch(49.6% 0.237 301.9) 50%, oklch(60.4% 0.257 329.9) 100%)
Stops
0%
50%
100%

Sunset

90°
CSS
linear-gradient(90deg, #F6CE55 0%, #EE6C2B 50%, #E6193C 100%)
OKLCH
linear-gradient(90deg, oklch(86.4% 0.144 90.6) 0%, oklch(68.0% 0.177 43.8) 50%, oklch(59.1% 0.228 21.2) 100%)
Stops
0%
50%
100%

Ocean

135°
CSS
linear-gradient(135deg, #19A1E6 0%, #22C3B6 50%, #47D1A3 100%)
OKLCH
linear-gradient(135deg, oklch(67.5% 0.146 238.9) 0%, oklch(73.8% 0.124 186.2) 50%, oklch(77.5% 0.136 166.9) 100%)
Stops
0%
50%
100%

Dark Mode

180°
CSS
linear-gradient(180deg, #7E22CE 0%, #1F122B 100%)
OKLCH
linear-gradient(180deg, oklch(49.6% 0.237 301.9) 0%, oklch(21.3% 0.050 306.6) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #A358E4 0%, #56178C 100%)
OKLCH
radial-gradient(circle, oklch(61.2% 0.207 305.8) 0%, oklch(37.8% 0.176 302.7) 100%)
Stops
0%
100%

💡 About OKLCH Gradients

OKLCH (Oklch Color Space) provides perceptually uniform gradients with better color transitions than traditional RGB/HSL gradients. The format is oklch(L% C H) where L = Lightness (0-100%), C = Chroma (0-0.4), H = Hue (0-360°).

Generate Full Palette

Create a complete brand palette from this color with primary, secondary, accent, and neutral scales.

View Palette