#5F4EA2#5F4EA2
#5F4EA2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 48.3% C 0.131 H 289.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).
Color values
| HEX | #5F4EA2 |
|---|---|
| RGB | rgb(95, 78, 162) |
| HSL | hsl(252, 35%, 47%) |
| HSV | hsv(252, 52%, 64%) |
| CMYK | cmyk(41.4%, 51.9%, 0%, 36.5%) |
| CIE-LAB | lab(38.71, 28.02, -43.28) |
| CIE-LCH | lch(38.71, 51.56, 302.92°) |
| OKLab | oklab(48.3% 0.0445 -0.1227) |
| OKLCH | oklch(48.3% 0.131 289.9) |
| XYZ | xyz(13.9635, 10.4899, 35.4644) |
| Luminance | 0.1049 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.39
Blueberry
#464196
ΔE00 5.65
Ocean Blue
#4F42B5
ΔE00 5.70
Twilight
#4E518B
ΔE00 5.93
Iris
#6258C4
ΔE00 6.17
Darkslateblue
#483D8B
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F4EA2 #91A24E
analogous
#4E67A2 #5F4EA2 #894EA2
triadic
#5F4EA2 #A25F4E #4EA25F
tetradic
#5F4EA2 #A24E67 #91A24E #4EA289
square
#5F4EA2 #A24E67 #91A24E #4EA289
split-complementary
#5F4EA2 #A2894E #67A24E
monochromatic
#2F264F #473A79 #5F4EA2 #8172BB #A69BCF
Accessibility & contrast
On white
6.78
#5F4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#5F4EA2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F4EA2
6.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F4EA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F4EA2 | 1.00 | 6.78 | 3.10 | 6.78 |
| #FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#2C59A0
Tritanopia (blue-blind)
#4C5F70
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5f4ea2; /* rgb */ color: rgb(95, 78, 162); /* oklch */ color: oklch(48.3% 0.131 289.9);
Tailwind
colors: {
custom: {
50: '#9080be',
500: '#5f4ea2',
950: '#000000',
},
}SCSS
$custom: #5f4ea2; $custom-light: #9080be; $custom-dark: #000000;
JSON
{
"hex": "#5f4ea2",
"rgb": {
"r": 95,
"g": 78,
"b": 162
},
"hsl": {
"h": 252.143,
"s": 35,
"l": 47.059
},
"oklch": {
"l": 0.48303,
"c": 0.13057,
"h": 289.9
},
"luminance": 0.1049
}Semantic roles & 50–950 ramp
primary
#5F4EA2
secondary
#B3BC90
accent
#CB5DB5
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81