#662EB5#662EB5
#662EB5 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.198 H 296.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).
Color values
| HEX | #662EB5 |
|---|---|
| RGB | rgb(102, 46, 181) |
| HSL | hsl(265, 59%, 45%) |
| HSV | hsv(265, 75%, 71%) |
| CMYK | cmyk(43.6%, 74.6%, 0%, 29%) |
| CIE-LAB | lab(34.22, 52.50, -61.83) |
| CIE-LCH | lch(34.22, 81.11, 310.33°) |
| OKLab | oklab(45.65% 0.0885 -0.177) |
| OKLCH | oklch(45.65% 0.198 296.6) |
| XYZ | xyz(14.7948, 8.1146, 44.4939) |
| Luminance | 0.0811 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 4.15
Rebeccapurple
#663399
ΔE00 4.59
Blurple
#5539CC
ΔE00 4.95
Blue With A Hint Of Purple
#533CC6
ΔE00 5.12
Bluey Purple
#6241C7
ΔE00 5.14
Violet Blue
#510AC9
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662EB5 #7DB52E
analogous
#2E3AB5 #662EB5 #AA2EB5
triadic
#662EB5 #B5662E #2EB566
tetradic
#662EB5 #B52E3A #7DB52E #2EB5AA
square
#662EB5 #B52E3A #7DB52E #2EB5AA
split-complementary
#662EB5 #B5AA2E #3AB52E
monochromatic
#2F1553 #4B2284 #662EB5 #854ED2 #A77FDE
Accessibility & contrast
On white
8.01
#662EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#662EB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662EB5
8.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662EB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662EB5 | 1.00 | 8.01 | 2.62 | 8.01 |
| #FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#51516F
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #662eb5; /* rgb */ color: rgb(102, 46, 181); /* oklch */ color: oklch(45.7% 0.198 296.6);
Tailwind
colors: {
custom: {
50: '#996ccc',
500: '#662eb5',
950: '#000000',
},
}SCSS
$custom: #662eb5; $custom-light: #996ccc; $custom-dark: #000000;
JSON
{
"hex": "#662eb5",
"rgb": {
"r": 102,
"g": 46,
"b": 181
},
"hsl": {
"h": 264.889,
"s": 59.471,
"l": 44.51
},
"oklch": {
"l": 0.45652,
"c": 0.19785,
"h": 296.6
},
"luminance": 0.08115
}Semantic roles & 50–950 ramp
primary
#662EB5
secondary
#A6C778
accent
#E345A1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82