#5F4591#5F4591
#5F4591 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.6% C 0.121 H 297.1°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).
Color values
| HEX | #5F4591 |
|---|---|
| RGB | rgb(95, 69, 145) |
| HSL | hsl(261, 36%, 42%) |
| HSV | hsv(261, 52%, 57%) |
| CMYK | cmyk(34.5%, 52.4%, 0%, 43.1%) |
| CIE-LAB | lab(35.47, 28.70, -38.20) |
| CIE-LCH | lch(35.47, 47.78, 306.91°) |
| OKLab | oklab(45.55% 0.0553 -0.1079) |
| OKLCH | oklch(45.55% 0.121 297.1) |
| XYZ | xyz(11.9570, 8.7333, 27.8383) |
| Luminance | 0.0873 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.99
Rebeccapurple
#663399
ΔE00 5.59
Blueberry
#464196
ΔE00 5.71
Royal Purple
#7851A9
ΔE00 6.44
Twilight
#4E518B
ΔE00 6.97
Ocean Blue
#4F42B5
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F4591 #779145
analogous
#455191 #5F4591 #854591
triadic
#5F4591 #915F45 #45915F
tetradic
#5F4591 #914551 #779145 #459185
square
#5F4591 #914551 #779145 #459185
split-complementary
#5F4591 #918545 #519145
monochromatic
#291E3E #443168 #5F4591 #7C60B3 #9E89C7
Accessibility & contrast
On white
7.65
#5F4591 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#5F4591 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F4591
7.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F4591 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F4591 | 1.00 | 7.65 | 2.75 | 7.65 |
| #FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#295494
Deuteranopia (green-blind)
#2F538F
Tritanopia (blue-blind)
#545464
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #5f4591; /* rgb */ color: rgb(95, 69, 145); /* oklch */ color: oklch(45.6% 0.121 297.1);
Tailwind
colors: {
custom: {
50: '#8f79b2',
500: '#5f4591',
950: '#000000',
},
}SCSS
$custom: #5f4591; $custom-light: #8f79b2; $custom-dark: #000000;
JSON
{
"hex": "#5f4591",
"rgb": {
"r": 95,
"g": 69,
"b": 145
},
"hsl": {
"h": 260.526,
"s": 35.514,
"l": 41.961
},
"oklch": {
"l": 0.4555,
"c": 0.12121,
"h": 297.1
},
"luminance": 0.08733
}Semantic roles & 50–950 ramp
primary
#5F4591
secondary
#A1B280
accent
#CC5CA5
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0911
muted
#7E7B80