#5F488C#5F488C
#5F488C is a mid, moderate violet. Relative luminance 0.090; OKLCH L 45.8% C 0.109 H 297.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #5F488C |
|---|---|
| RGB | rgb(95, 72, 140) |
| HSL | hsl(260, 32%, 42%) |
| HSV | hsv(260, 49%, 55%) |
| CMYK | cmyk(32.1%, 48.6%, 0%, 45.1%) |
| CIE-LAB | lab(35.91, 25.47, -34.45) |
| CIE-LCH | lch(35.91, 42.84, 306.48°) |
| OKLab | oklab(45.79% 0.0505 -0.0969) |
| OKLCH | oklch(45.79% 0.109 297.5) |
| XYZ | xyz(11.7692, 8.9609, 25.9154) |
| Luminance | 0.0896 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.67
Twilight
#4E518B
ΔE00 6.26
Blueberry
#464196
ΔE00 6.51
Royal Purple
#7851A9
ΔE00 6.75
Rebeccapurple
#663399
ΔE00 7.01
Dusk
#4E5481
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F488C #758C48
analogous
#48538C #5F488C #81488C
triadic
#5F488C #8C5F48 #488C5F
tetradic
#5F488C #8C4853 #758C48 #488C81
square
#5F488C #8C4853 #758C48 #488C81
split-complementary
#5F488C #8C8148 #538C48
monochromatic
#281E3B #443364 #5F488C #7C63AF #9E8BC3
Accessibility & contrast
On white
7.52
#5F488C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#5F488C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F488C
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F488C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F488C | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#32558E
Deuteranopia (green-blind)
#37548A
Tritanopia (blue-blind)
#555563
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #5f488c; /* rgb */ color: rgb(95, 72, 140); /* oklch */ color: oklch(45.8% 0.109 297.5);
Tailwind
colors: {
custom: {
50: '#8e7bae',
500: '#5f488c',
950: '#000000',
},
}SCSS
$custom: #5f488c; $custom-light: #8e7bae; $custom-dark: #000000;
JSON
{
"hex": "#5f488c",
"rgb": {
"r": 95,
"g": 72,
"b": 140
},
"hsl": {
"h": 260.294,
"s": 32.075,
"l": 41.569
},
"oklch": {
"l": 0.45786,
"c": 0.10925,
"h": 297.5
},
"luminance": 0.08961
}Semantic roles & 50–950 ramp
primary
#5F488C
secondary
#9FAF81
accent
#C860A5
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0910
muted
#7D7B7F