#5F367C#5F367C
#5F367C is a dark, moderate violet. Relative luminance 0.065; OKLCH L 41.6% C 0.119 H 309.2°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).
Color values
| HEX | #5F367C |
|---|---|
| RGB | rgb(95, 54, 124) |
| HSL | hsl(275, 39%, 35%) |
| HSV | hsv(275, 56%, 49%) |
| CMYK | cmyk(23.4%, 56.5%, 0%, 51.4%) |
| CIE-LAB | lab(30.70, 32.15, -32.81) |
| CIE-LCH | lch(30.70, 45.94, 314.42°) |
| OKLab | oklab(41.61% 0.0751 -0.0921) |
| OKLCH | oklch(41.61% 0.119 309.2) |
| XYZ | xyz(9.6759, 6.5266, 19.8149) |
| Luminance | 0.0653 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.66
Darkslateblue
#483D8B
ΔE00 7.49
Darkish Purple
#751973
ΔE00 7.94
Purple (survey)
#7E1E9C
ΔE00 8.48
Grape
#6C3461
ΔE00 8.91
Blueberry
#464196
ΔE00 9.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F367C #537C36
analogous
#3C367C #5F367C #7C3676
triadic
#5F367C #7C5F36 #367C5F
tetradic
#5F367C #7C3C36 #537C36 #36767C
square
#5F367C #7C3C36 #537C36 #36767C
split-complementary
#5F367C #767C36 #367C3C
monochromatic
#1E1127 #3E2351 #5F367C #8049A7 #9D6DBF
Accessibility & contrast
On white
9.11
#5F367C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#5F367C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F367C
9.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F367C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F367C | 1.00 | 9.11 | 2.31 | 9.11 |
| #FFFFFF | 9.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#21467E
Deuteranopia (green-blind)
#2E497A
Tritanopia (blue-blind)
#5B4253
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #5f367c; /* rgb */ color: rgb(95, 54, 124); /* oklch */ color: oklch(41.6% 0.119 309.2);
Tailwind
colors: {
custom: {
50: '#8e6fa2',
500: '#5f367c',
950: '#000000',
},
}SCSS
$custom: #5f367c; $custom-light: #8e6fa2; $custom-dark: #000000;
JSON
{
"hex": "#5f367c",
"rgb": {
"r": 95,
"g": 54,
"b": 124
},
"hsl": {
"h": 275.143,
"s": 39.326,
"l": 34.902
},
"oklch": {
"l": 0.41614,
"c": 0.11881,
"h": 309.2
},
"luminance": 0.06526
}Semantic roles & 50–950 ramp
primary
#5F367C
secondary
#81A866
accent
#CF598A
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0C070F
muted
#7D7A7F