#5B308F#5B308F
#5B308F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.150 H 300.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #5B308F |
|---|---|
| RGB | rgb(91, 48, 143) |
| HSL | hsl(267, 50%, 37%) |
| HSV | hsv(267, 66%, 56%) |
| CMYK | cmyk(36.4%, 66.4%, 0%, 43.9%) |
| CIE-LAB | lab(30.21, 39.42, -45.45) |
| CIE-LCH | lch(30.21, 60.16, 310.94°) |
| OKLab | oklab(41.55% 0.0771 -0.1292) |
| OKLCH | oklch(41.55% 0.15 300.8) |
| XYZ | xyz(10.3281, 6.3212, 26.6573) |
| Luminance | 0.0632 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.44
Darkslateblue
#483D8B
ΔE00 6.03
Purple (survey)
#7E1E9C
ΔE00 7.03
Blueberry
#464196
ΔE00 7.34
Indigo
#4B0082
ΔE00 8.12
Ocean Blue
#4F42B5
ΔE00 8.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B308F #648F30
analogous
#30358F #5B308F #8B308F
triadic
#5B308F #8F5B30 #308F5B
tetradic
#5B308F #8F3035 #648F30 #308F8B
square
#5B308F #8F3035 #648F30 #308F8B
split-complementary
#5B308F #8F8B30 #358F30
monochromatic
#211133 #3E2161 #5B308F #783FBD #986CCE
Accessibility & contrast
On white
9.27
#5B308F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#5B308F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B308F
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B308F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B308F | 1.00 | 9.27 | 2.26 | 9.27 |
| #FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#04478D
Tritanopia (blue-blind)
#50455B
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #5b308f; /* rgb */ color: rgb(91, 48, 143); /* oklch */ color: oklch(41.5% 0.150 300.8);
Tailwind
colors: {
custom: {
50: '#8e6bb0',
500: '#5b308f',
950: '#000000',
},
}SCSS
$custom: #5b308f; $custom-light: #8e6bb0; $custom-dark: #000000;
JSON
{
"hex": "#5b308f",
"rgb": {
"r": 91,
"g": 48,
"b": 143
},
"hsl": {
"h": 267.158,
"s": 49.738,
"l": 37.451
},
"oklch": {
"l": 0.41549,
"c": 0.15047,
"h": 300.8
},
"luminance": 0.06321
}Semantic roles & 50–950 ramp
primary
#5B308F
secondary
#91B566
accent
#D94F9A
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80