#5F4E8A#5F4E8A
#5F4E8A is a mid, moderate violet. Relative luminance 0.097; OKLCH L 46.8% C 0.096 H 295.5°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).
Color values
| HEX | #5F4E8A |
|---|---|
| RGB | rgb(95, 78, 138) |
| HSL | hsl(257, 28%, 42%) |
| HSV | hsv(257, 43%, 54%) |
| CMYK | cmyk(31.2%, 43.5%, 0%, 45.9%) |
| CIE-LAB | lab(37.33, 21.18, -30.98) |
| CIE-LCH | lch(37.33, 37.53, 304.35°) |
| OKLab | oklab(46.82% 0.0414 -0.0868) |
| OKLCH | oklch(46.82% 0.096 295.5) |
| XYZ | xyz(12.0300, 9.7165, 25.2815) |
| Luminance | 0.0972 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 5.11
Dusk
#4E5481
ΔE00 6.28
Darkslateblue
#483D8B
ΔE00 7.06
Royal Purple
#7851A9
ΔE00 7.20
Blueberry
#464196
ΔE00 7.63
Rebeccapurple
#663399
ΔE00 9.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F4E8A #798A4E
analogous
#4E5B8A #5F4E8A #7D4E8A
triadic
#5F4E8A #8A5F4E #4E8A5F
tetradic
#5F4E8A #8A4E5B #798A4E #4E8A7D
square
#5F4E8A #8A4E5B #798A4E #4E8A7D
split-complementary
#5F4E8A #8A7D4E #5B8A4E
monochromatic
#29223C #443863 #5F4E8A #7D6AAB #9F91C1
Accessibility & contrast
On white
7.13
#5F4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#5F4E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F4E8A
7.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F4E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F4E8A | 1.00 | 7.13 | 2.94 | 7.13 |
| #FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C588C
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#565965
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #5f4e8a; /* rgb */ color: rgb(95, 78, 138); /* oklch */ color: oklch(46.8% 0.096 295.5);
Tailwind
colors: {
custom: {
50: '#8e7fac',
500: '#5f4e8a',
950: '#000000',
},
}SCSS
$custom: #5f4e8a; $custom-light: #8e7fac; $custom-dark: #000000;
JSON
{
"hex": "#5f4e8a",
"rgb": {
"r": 95,
"g": 78,
"b": 138
},
"hsl": {
"h": 257,
"s": 27.778,
"l": 42.353
},
"oklch": {
"l": 0.46819,
"c": 0.09615,
"h": 295.5
},
"luminance": 0.09717
}Semantic roles & 50–950 ramp
primary
#5F4E8A
secondary
#A2AE86
accent
#C464A9
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F