#662399#662399
#662399 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.180 H 305.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #662399 |
|---|---|
| RGB | rgb(102, 35, 153) |
| HSL | hsl(274, 63%, 37%) |
| HSV | hsv(274, 77%, 60%) |
| CMYK | cmyk(33.3%, 77.1%, 0%, 40%) |
| CIE-LAB | lab(30.22, 50.40, -51.49) |
| CIE-LCH | lch(30.22, 72.05, 314.39°) |
| OKLab | oklab(42.12% 0.105 -0.1465) |
| OKLCH | oklch(42.12% 0.18 305.6) |
| XYZ | xyz(11.8290, 6.3268, 30.7288) |
| Luminance | 0.0633 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.16
Purple (survey)
#7E1E9C
ΔE00 4.49
Indigo
#4B0082
ΔE00 7.17
Violet Blue
#510AC9
ΔE00 7.93
Purple Blue
#5D21D0
ΔE00 8.06
Indigo Blue
#3A18B1
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662399 #569923
analogous
#2B2399 #662399 #992391
triadic
#662399 #996623 #239966
tetradic
#662399 #992B23 #569923 #239199
square
#662399 #992B23 #569923 #239199
split-complementary
#662399 #919923 #23992B
monochromatic
#240C35 #451867 #662399 #872ECB #A45DDA
Accessibility & contrast
On white
9.27
#662399 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#662399 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662399
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662399 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662399 | 1.00 | 9.27 | 2.27 | 9.27 |
| #FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#5D415D
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #662399; /* rgb */ color: rgb(102, 35, 153); /* oklch */ color: oklch(42.1% 0.180 305.6);
Tailwind
colors: {
custom: {
50: '#9765b8',
500: '#662399',
950: '#000000',
},
}SCSS
$custom: #662399; $custom-light: #9765b8; $custom-dark: #000000;
JSON
{
"hex": "#662399",
"rgb": {
"r": 102,
"g": 35,
"b": 153
},
"hsl": {
"h": 274.068,
"s": 62.766,
"l": 36.863
},
"oklch": {
"l": 0.4212,
"c": 0.18029,
"h": 305.6
},
"luminance": 0.06327
}Semantic roles & 50–950 ramp
primary
#662399
secondary
#85BE59
accent
#E64289
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80