#5F4EA5#5F4EA5
#5F4EA5 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.5% C 0.135 H 289.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).
Color values
| HEX | #5F4EA5 |
|---|---|
| RGB | rgb(95, 78, 165) |
| HSL | hsl(252, 36%, 48%) |
| HSV | hsv(252, 53%, 65%) |
| CMYK | cmyk(42.4%, 52.7%, 0%, 35.3%) |
| CIE-LAB | lab(38.89, 28.90, -44.78) |
| CIE-LCH | lch(38.89, 53.29, 302.84°) |
| OKLab | oklab(48.5% 0.0447 -0.1271) |
| OKLCH | oklch(48.5% 0.135 289.4) |
| XYZ | xyz(14.2333, 10.5978, 36.8857) |
| Luminance | 0.1060 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 5.31
Royal Purple
#7851A9
ΔE00 5.42
Blueberry
#464196
ΔE00 5.71
Iris
#6258C4
ΔE00 5.71
Twilight
#4E518B
ΔE00 6.26
Bluey Purple
#6241C7
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F4EA5 #94A54E
analogous
#4E69A5 #5F4EA5 #8A4EA5
triadic
#5F4EA5 #A55F4E #4EA55F
tetradic
#5F4EA5 #A54E69 #94A54E #4EA58A
square
#5F4EA5 #A54E69 #94A54E #4EA58A
split-complementary
#5F4EA5 #A58A4E #69A54E
monochromatic
#2F2752 #473A7B #5F4EA5 #8273BD #A79DD1
Accessibility & contrast
On white
6.73
#5F4EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#5F4EA5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F4EA5
6.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F4EA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F4EA5 | 1.00 | 6.73 | 3.12 | 6.73 |
| #FFFFFF | 6.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#275DA8
Deuteranopia (green-blind)
#295AA3
Tritanopia (blue-blind)
#4B6072
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5f4ea5; /* rgb */ color: rgb(95, 78, 165); /* oklch */ color: oklch(48.5% 0.135 289.4);
Tailwind
colors: {
custom: {
50: '#9180c0',
500: '#5f4ea5',
950: '#000000',
},
}SCSS
$custom: #5f4ea5; $custom-light: #9180c0; $custom-dark: #000000;
JSON
{
"hex": "#5f4ea5",
"rgb": {
"r": 95,
"g": 78,
"b": 165
},
"hsl": {
"h": 251.724,
"s": 35.802,
"l": 47.647
},
"oklch": {
"l": 0.48503,
"c": 0.13477,
"h": 289.4
},
"luminance": 0.10598
}Semantic roles & 50–950 ramp
primary
#5F4EA5
secondary
#B5BD91
accent
#CC5CB6
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81