#5F4199#5F4199
#5F4199 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.4% C 0.138 H 296.2°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #5F4199 |
|---|---|
| RGB | rgb(95, 65, 153) |
| HSL | hsl(260, 40%, 43%) |
| HSV | hsv(260, 58%, 60%) |
| CMYK | cmyk(37.9%, 57.5%, 0%, 40%) |
| CIE-LAB | lab(35.03, 33.35, -43.76) |
| CIE-LCH | lch(35.03, 55.02, 307.31°) |
| OKLab | oklab(45.39% 0.061 -0.1242) |
| OKLCH | oklch(45.39% 0.138 296.2) |
| XYZ | xyz(12.3579, 8.5132, 31.1229) |
| Luminance | 0.0851 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.07
Darkslateblue
#483D8B
ΔE00 4.86
Blueberry
#464196
ΔE00 5.22
Ocean Blue
#4F42B5
ΔE00 5.95
Royal Purple
#7851A9
ΔE00 6.57
Bluey Purple
#6241C7
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F4199 #7B9941
analogous
#414F99 #5F4199 #8B4199
triadic
#5F4199 #995F41 #41995F
tetradic
#5F4199 #99414F #7B9941 #41998B
square
#5F4199 #99414F #7B9941 #41998B
split-complementary
#5F4199 #998B41 #4F9941
monochromatic
#2A1D43 #442F6E #5F4199 #7D5DBA #9F88CC
Accessibility & contrast
On white
7.77
#5F4199 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#5F4199 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F4199
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F4199 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F4199 | 1.00 | 7.77 | 2.70 | 7.77 |
| #FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#16539C
Deuteranopia (green-blind)
#215197
Tritanopia (blue-blind)
#515366
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #5f4199; /* rgb */ color: rgb(95, 65, 153); /* oklch */ color: oklch(45.4% 0.138 296.2);
Tailwind
colors: {
custom: {
50: '#9077b8',
500: '#5f4199',
950: '#000000',
},
}SCSS
$custom: #5f4199; $custom-light: #9077b8; $custom-dark: #000000;
JSON
{
"hex": "#5f4199",
"rgb": {
"r": 95,
"g": 65,
"b": 153
},
"hsl": {
"h": 260.455,
"s": 40.367,
"l": 42.745
},
"oklch": {
"l": 0.45391,
"c": 0.13836,
"h": 296.2
},
"luminance": 0.08513
}Semantic roles & 50–950 ramp
primary
#5F4199
secondary
#A4B77F
accent
#D058A7
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0811
muted
#7E7B80