#5F428F#5F428F
#5F428F is a dark, vivid violet. Relative luminance 0.083; OKLCH L 44.9% C 0.123 H 298.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).
Color values
| HEX | #5F428F |
|---|---|
| RGB | rgb(95, 66, 143) |
| HSL | hsl(263, 37%, 41%) |
| HSV | hsv(263, 54%, 56%) |
| CMYK | cmyk(33.6%, 53.8%, 0%, 43.9%) |
| CIE-LAB | lab(34.63, 29.98, -38.32) |
| CIE-LCH | lch(34.63, 48.65, 308.03°) |
| OKLab | oklab(44.89% 0.0593 -0.1082) |
| OKLCH | oklch(44.89% 0.123 298.7) |
| XYZ | xyz(11.6243, 8.3124, 26.9733) |
| Luminance | 0.0831 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.88
Darkslateblue
#483D8B
ΔE00 4.93
Blueberry
#464196
ΔE00 5.94
Royal Purple
#7851A9
ΔE00 6.92
Twilight
#4E518B
ΔE00 7.74
Ocean Blue
#4F42B5
ΔE00 7.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F428F #728F42
analogous
#424B8F #5F428F #85428F
triadic
#5F428F #8F5F42 #428F5F
tetradic
#5F428F #8F424B #728F42 #428F85
square
#5F428F #8F424B #728F42 #428F85
split-complementary
#5F428F #8F8542 #4B8F42
monochromatic
#271B3B #432F65 #5F428F #7C5BB3 #9E85C7
Accessibility & contrast
On white
7.89
#5F428F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#5F428F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F428F
7.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F428F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F428F | 1.00 | 7.89 | 2.66 | 7.89 |
| #FFFFFF | 7.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#255192
Deuteranopia (green-blind)
#2D518D
Tritanopia (blue-blind)
#555162
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #5f428f; /* rgb */ color: rgb(95, 66, 143); /* oklch */ color: oklch(44.9% 0.123 298.7);
Tailwind
colors: {
custom: {
50: '#8f77b0',
500: '#5f428f',
950: '#000000',
},
}SCSS
$custom: #5f428f; $custom-light: #8f77b0; $custom-dark: #000000;
JSON
{
"hex": "#5f428f",
"rgb": {
"r": 95,
"g": 66,
"b": 143
},
"hsl": {
"h": 262.597,
"s": 36.842,
"l": 40.98
},
"oklch": {
"l": 0.44887,
"c": 0.12339,
"h": 298.7
},
"luminance": 0.08312
}Semantic roles & 50–950 ramp
primary
#5F428F
secondary
#9DB17B
accent
#CD5BA2
background
#F9F7FA
surface
#F1EDF5
border
#CBC8CF
text
#0D0910
muted
#7E7B7F