#662FAF#662FAF
#662FAF is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.190 H 297.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).
Color values
| HEX | #662FAF |
|---|---|
| RGB | rgb(102, 47, 175) |
| HSL | hsl(266, 58%, 44%) |
| HSV | hsv(266, 73%, 69%) |
| CMYK | cmyk(41.7%, 73.1%, 0%, 31.4%) |
| CIE-LAB | lab(33.88, 50.49, -58.81) |
| CIE-LCH | lch(33.88, 77.51, 310.65°) |
| OKLab | oklab(45.26% 0.0889 -0.1681) |
| OKLCH | oklch(45.26% 0.19 297.9) |
| XYZ | xyz(14.2319, 7.9527, 41.3343) |
| Luminance | 0.0795 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.70
Purple Blue
#5D21D0
ΔE00 4.99
Bluey Purple
#6241C7
ΔE00 5.59
Blurple
#5539CC
ΔE00 5.60
Blue With A Hint Of Purple
#533CC6
ΔE00 5.63
Ocean Blue
#4F42B5
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662FAF #78AF2F
analogous
#2F38AF #662FAF #A62FAF
triadic
#662FAF #AF662F #2FAF66
tetradic
#662FAF #AF2F38 #78AF2F #2FAFA6
square
#662FAF #AF2F38 #78AF2F #2FAFA6
split-complementary
#662FAF #AFA62F #38AF2F
monochromatic
#2E154F #4A227F #662FAF #844CCF #A57CDC
Accessibility & contrast
On white
8.11
#662FAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.59
#662FAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662FAF
8.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662FAF | 1.00 | 8.11 | 2.59 | 8.11 |
| #FFFFFF | 8.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#54506C
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #662faf; /* rgb */ color: rgb(102, 47, 175); /* oklch */ color: oklch(45.3% 0.190 297.9);
Tailwind
colors: {
custom: {
50: '#986dc8',
500: '#662faf',
950: '#000000',
},
}SCSS
$custom: #662faf; $custom-light: #986dc8; $custom-dark: #000000;
JSON
{
"hex": "#662faf",
"rgb": {
"r": 102,
"g": 47,
"b": 175
},
"hsl": {
"h": 265.781,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.4526,
"c": 0.19018,
"h": 297.9
},
"luminance": 0.07953
}Semantic roles & 50–950 ramp
primary
#662FAF
secondary
#A2C475
accent
#E1479F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82