#5F4EAA#5F4EAA
#5F4EAA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 48.8% C 0.142 H 288.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).
Color values
| HEX | #5F4EAA |
|---|---|
| RGB | rgb(95, 78, 170) |
| HSL | hsl(251, 37%, 49%) |
| HSV | hsv(251, 54%, 67%) |
| CMYK | cmyk(44.1%, 54.1%, 0%, 33.3%) |
| CIE-LAB | lab(39.21, 30.38, -47.24) |
| CIE-LCH | lch(39.21, 56.17, 302.75°) |
| OKLab | oklab(48.84% 0.045 -0.1344) |
| OKLCH | oklch(48.84% 0.142 288.5) |
| XYZ | xyz(14.6974, 10.7834, 39.3294) |
| Luminance | 0.1078 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 4.76
Iris
#6258C4
ΔE00 5.00
Royal Purple
#7851A9
ΔE00 5.57
Bluey Purple
#6241C7
ΔE00 5.80
Blueberry
#464196
ΔE00 5.92
Slate Blue
#6A5ACD
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F4EAA #99AA4E
analogous
#4E6BAA #5F4EAA #8D4EAA
triadic
#5F4EAA #AA5F4E #4EAA5F
tetradic
#5F4EAA #AA4E6B #99AA4E #4EAA8D
square
#5F4EAA #AA4E6B #99AA4E #4EAA8D
split-complementary
#5F4EAA #AA8D4E #6BAA4E
monochromatic
#302856 #483B80 #5F4EAA #8375C0 #A99FD3
Accessibility & contrast
On white
6.65
#5F4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#5F4EAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F4EAA
6.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F4EAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F4EAA | 1.00 | 6.65 | 3.16 | 6.65 |
| #FFFFFF | 6.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#215EAD
Deuteranopia (green-blind)
#225AA8
Tritanopia (blue-blind)
#496274
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5f4eaa; /* rgb */ color: rgb(95, 78, 170); /* oklch */ color: oklch(48.8% 0.142 288.5);
Tailwind
colors: {
custom: {
50: '#9180c4',
500: '#5f4eaa',
950: '#000000',
},
}SCSS
$custom: #5f4eaa; $custom-light: #9180c4; $custom-dark: #000000;
JSON
{
"hex": "#5f4eaa",
"rgb": {
"r": 95,
"g": 78,
"b": 170
},
"hsl": {
"h": 251.087,
"s": 37.097,
"l": 48.627
},
"oklch": {
"l": 0.48842,
"c": 0.14171,
"h": 288.5
},
"luminance": 0.10784
}Semantic roles & 50–950 ramp
primary
#5F4EAA
secondary
#B8C094
accent
#CD5BB8
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82