#5C508F#5C508F
#5C508F is a mid, moderate violet. Relative luminance 0.100; OKLCH L 47.2% C 0.100 H 290.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).
Color values
| HEX | #5C508F |
|---|---|
| RGB | rgb(92, 80, 143) |
| HSL | hsl(251, 28%, 44%) |
| HSV | hsv(251, 44%, 56%) |
| CMYK | cmyk(35.7%, 44.1%, 0%, 43.9%) |
| CIE-LAB | lab(37.83, 20.44, -33.24) |
| CIE-LCH | lch(37.83, 39.03, 301.59°) |
| OKLab | oklab(47.22% 0.0355 -0.0934) |
| OKLCH | oklch(47.22% 0.1 290.8) |
| XYZ | xyz(12.2389, 9.9955, 27.2658) |
| Luminance | 0.1000 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 3.76
Dusk
#4E5481
ΔE00 5.38
Darkslateblue
#483D8B
ΔE00 6.69
Blueberry
#464196
ΔE00 6.76
Royal Purple
#7851A9
ΔE00 7.21
Ocean Blue
#4F42B5
ΔE00 9.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C508F #838F50
analogous
#50638F #5C508F #7B508F
triadic
#5C508F #8F5C50 #508F5C
tetradic
#5C508F #8F5063 #838F50 #508F7B
square
#5C508F #8F5063 #838F50 #508F7B
split-complementary
#5C508F #8F7B50 #638F50
monochromatic
#2A2441 #433A68 #5C508F #7A6EAE #9E95C4
Accessibility & contrast
On white
7.00
#5C508F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
3.00
#5C508F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5C508F
7.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C508F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C508F | 1.00 | 7.00 | 3.00 | 7.00 |
| #FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C5A91
Deuteranopia (green-blind)
#3C588D
Tritanopia (blue-blind)
#4F5C68
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #5c508f; /* rgb */ color: rgb(92, 80, 143); /* oklch */ color: oklch(47.2% 0.100 290.8);
Tailwind
colors: {
custom: {
50: '#8c81b0',
500: '#5c508f',
950: '#000000',
},
}SCSS
$custom: #5c508f; $custom-light: #8c81b0; $custom-dark: #000000;
JSON
{
"hex": "#5c508f",
"rgb": {
"r": 92,
"g": 80,
"b": 143
},
"hsl": {
"h": 251.429,
"s": 28.251,
"l": 43.725
},
"oklch": {
"l": 0.47221,
"c": 0.09997,
"h": 290.8
},
"luminance": 0.09996
}Semantic roles & 50–950 ramp
primary
#5C508F
secondary
#A9B18A
accent
#C563B2
background
#F8F7FA
surface
#F0EEF5
border
#CBC9CF
text
#0C0A10
muted
#7D7C7F