#662ED3#662ED3
#662ED3 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.230 H 290.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #662ED3 |
|---|---|
| RGB | rgb(102, 46, 211) |
| HSL | hsl(260, 65%, 50%) |
| HSV | hsv(260, 78%, 83%) |
| CMYK | cmyk(51.7%, 78.2%, 0%, 17.3%) |
| CIE-LAB | lab(36.89, 60.26, -75.00) |
| CIE-LCH | lch(36.89, 96.21, 308.78°) |
| OKLab | oklab(48.34% 0.0802 -0.2156) |
| OKLCH | oklch(48.34% 0.23 290.4) |
| XYZ | xyz(18.2110, 9.4811, 62.4859) |
| Luminance | 0.0948 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Burple
#6832E3
ΔE00 2.38
Purple Blue
#5D21D0
ΔE00 2.60
Purpley Blue
#5F34E7
ΔE00 3.01
Blurple
#5539CC
ΔE00 3.16
Purply Blue
#661AEE
ΔE00 3.41
Bluey Purple
#6241C7
ΔE00 3.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662ED3 #9BD32E
analogous
#2E48D3 #662ED3 #B92ED3
triadic
#662ED3 #D3662E #2ED366
tetradic
#662ED3 #D32E48 #9BD32E #2ED3B9
square
#662ED3 #D32E48 #9BD32E #2ED3B9
split-complementary
#662ED3 #D3B92E #48D32E
monochromatic
#35176F #4D22A2 #662ED3 #8B61DE #B093E8
Accessibility & contrast
On white
7.25
#662ED3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#662ED3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662ED3
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662ED3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662ED3 | 1.00 | 7.25 | 2.90 | 7.25 |
| #FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#0053D0
Tritanopia (blue-blind)
#3E5E80
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #662ed3; /* rgb */ color: rgb(102, 46, 211); /* oklch */ color: oklch(48.3% 0.230 290.4);
Tailwind
colors: {
custom: {
50: '#9d6ee2',
500: '#662ed3',
950: '#000000',
},
}SCSS
$custom: #662ed3; $custom-light: #9d6ee2; $custom-dark: #000000;
JSON
{
"hex": "#662ed3",
"rgb": {
"r": 102,
"g": 46,
"b": 211
},
"hsl": {
"h": 260.364,
"s": 65.217,
"l": 50.392
},
"oklch": {
"l": 0.4834,
"c": 0.23004,
"h": 290.4
},
"luminance": 0.09482
}Semantic roles & 50–950 ramp
primary
#662ED3
secondary
#BAD38A
accent
#E840AF
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#100816
muted
#7F7B84