#5F418F#5F418F
#5F418F is a dark, vivid violet. Relative luminance 0.082; OKLCH L 44.7% C 0.125 H 299.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).
Color values
| HEX | #5F418F |
|---|---|
| RGB | rgb(95, 65, 143) |
| HSL | hsl(263, 38%, 41%) |
| HSV | hsv(263, 55%, 56%) |
| CMYK | cmyk(33.6%, 54.5%, 0%, 43.9%) |
| CIE-LAB | lab(34.39, 30.58, -38.70) |
| CIE-LCH | lch(34.39, 49.32, 308.31°) |
| OKLab | oklab(44.71% 0.0607 -0.1093) |
| OKLCH | oklch(44.71% 0.125 299) |
| XYZ | xyz(11.5663, 8.1966, 26.9540) |
| Luminance | 0.0820 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.60
Darkslateblue
#483D8B
ΔE00 4.91
Blueberry
#464196
ΔE00 5.96
Royal Purple
#7851A9
ΔE00 7.05
Ocean Blue
#4F42B5
ΔE00 7.77
Twilight
#4E518B
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F418F #718F41
analogous
#414A8F #5F418F #86418F
triadic
#5F418F #8F5F41 #418F5F
tetradic
#5F418F #8F414A #718F41 #418F86
square
#5F418F #8F414A #718F41 #418F86
split-complementary
#5F418F #8F8641 #4A8F41
monochromatic
#271B3B #432E65 #5F418F #7C59B4 #9D84C7
Accessibility & contrast
On white
7.96
#5F418F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#5F418F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F418F
7.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F418F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F418F | 1.00 | 7.96 | 2.64 | 7.96 |
| #FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#235192
Deuteranopia (green-blind)
#2C508D
Tritanopia (blue-blind)
#555061
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #5f418f; /* rgb */ color: rgb(95, 65, 143); /* oklch */ color: oklch(44.7% 0.125 299.0);
Tailwind
colors: {
custom: {
50: '#8f76b0',
500: '#5f418f',
950: '#000000',
},
}SCSS
$custom: #5f418f; $custom-light: #8f76b0; $custom-dark: #000000;
JSON
{
"hex": "#5f418f",
"rgb": {
"r": 95,
"g": 65,
"b": 143
},
"hsl": {
"h": 263.077,
"s": 37.5,
"l": 40.784
},
"oklch": {
"l": 0.44712,
"c": 0.12504,
"h": 299
},
"luminance": 0.08197
}Semantic roles & 50–950 ramp
primary
#5F418F
secondary
#9CB17A
accent
#CD5AA1
background
#F9F7FA
surface
#F1EDF5
border
#CBC8CF
text
#0D0810
muted
#7E7B7F