#662EBD#662EBD
#662EBD is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.3% C 0.207 H 294.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).
Color values
| HEX | #662EBD |
|---|---|
| RGB | rgb(102, 46, 189) |
| HSL | hsl(263, 61%, 46%) |
| HSV | hsv(263, 76%, 74%) |
| CMYK | cmyk(46%, 75.7%, 0%, 25.9%) |
| CIE-LAB | lab(34.91, 54.56, -65.43) |
| CIE-LCH | lch(34.91, 85.19, 309.82°) |
| OKLab | oklab(46.35% 0.0864 -0.1876) |
| OKLCH | oklch(46.35% 0.207 294.7) |
| XYZ | xyz(15.6393, 8.4525, 48.9417) |
| Luminance | 0.0845 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.26
Blurple
#5539CC
ΔE00 4.12
Blue With A Hint Of Purple
#533CC6
ΔE00 4.47
Bluey Purple
#6241C7
ΔE00 4.49
Burple
#6832E3
ΔE00 5.23
Violet Blue
#510AC9
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662EBD #85BD2E
analogous
#2E3DBD #662EBD #AD2EBD
triadic
#662EBD #BD662E #2EBD66
tetradic
#662EBD #BD2E3D #85BD2E #2EBDAD
square
#662EBD #BD2E3D #85BD2E #2EBDAD
split-complementary
#662EBD #BDAD2E #3DBD2E
monochromatic
#31165B #4B228C #662EBD #8653D5 #A984E1
Accessibility & contrast
On white
7.80
#662EBD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#662EBD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662EBD
7.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662EBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662EBD | 1.00 | 7.80 | 2.69 | 7.80 |
| #FFFFFF | 7.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#4D5574
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #662ebd; /* rgb */ color: rgb(102, 46, 189); /* oklch */ color: oklch(46.3% 0.207 294.7);
Tailwind
colors: {
custom: {
50: '#9a6dd2',
500: '#662ebd',
950: '#000000',
},
}SCSS
$custom: #662ebd; $custom-light: #9a6dd2; $custom-dark: #000000;
JSON
{
"hex": "#662ebd",
"rgb": {
"r": 102,
"g": 46,
"b": 189
},
"hsl": {
"h": 263.497,
"s": 60.851,
"l": 46.078
},
"oklch": {
"l": 0.46347,
"c": 0.20652,
"h": 294.7
},
"luminance": 0.08453
}Semantic roles & 50–950 ramp
primary
#662EBD
secondary
#ACCA7C
accent
#E444A5
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83