#5D308F#5D308F
#5D308F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.151 H 302.0°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5D308F |
|---|---|
| RGB | rgb(93, 48, 143) |
| HSL | hsl(268, 50%, 37%) |
| HSV | hsv(268, 66%, 56%) |
| CMYK | cmyk(35%, 66.4%, 0%, 43.9%) |
| CIE-LAB | lab(30.46, 39.87, -45.03) |
| CIE-LCH | lch(30.46, 60.15, 311.52°) |
| OKLab | oklab(41.79% 0.0799 -0.1279) |
| OKLCH | oklch(41.79% 0.151 302) |
| XYZ | xyz(10.5279, 6.4242, 26.6666) |
| Luminance | 0.0642 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.18
Darkslateblue
#483D8B
ΔE00 6.34
Purple (survey)
#7E1E9C
ΔE00 6.67
Blueberry
#464196
ΔE00 7.65
Indigo
#4B0082
ΔE00 8.23
Ocean Blue
#4F42B5
ΔE00 8.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D308F #628F30
analogous
#30338F #5D308F #8C308F
triadic
#5D308F #8F5D30 #308F5D
tetradic
#5D308F #8F3033 #628F30 #308F8C
square
#5D308F #8F3033 #628F30 #308F8C
split-complementary
#5D308F #8F8C30 #338F30
monochromatic
#211133 #3F2161 #5D308F #7B3FBD #9A6CCE
Accessibility & contrast
On white
9.19
#5D308F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#5D308F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D308F
9.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D308F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D308F | 1.00 | 9.19 | 2.28 | 9.19 |
| #FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#0A478D
Tritanopia (blue-blind)
#53455B
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #5d308f; /* rgb */ color: rgb(93, 48, 143); /* oklch */ color: oklch(41.8% 0.151 302.0);
Tailwind
colors: {
custom: {
50: '#8f6bb0',
500: '#5d308f',
950: '#000000',
},
}SCSS
$custom: #5d308f; $custom-light: #8f6bb0; $custom-dark: #000000;
JSON
{
"hex": "#5d308f",
"rgb": {
"r": 93,
"g": 48,
"b": 143
},
"hsl": {
"h": 268.421,
"s": 49.738,
"l": 37.451
},
"oklch": {
"l": 0.41785,
"c": 0.15086,
"h": 302
},
"luminance": 0.06424
}Semantic roles & 50–950 ramp
primary
#5D308F
secondary
#8FB566
accent
#D94F98
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80