#5E308F#5E308F
#5E308F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.151 H 302.6°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).
Color values
| HEX | #5E308F |
|---|---|
| RGB | rgb(94, 48, 143) |
| HSL | hsl(269, 50%, 37%) |
| HSV | hsv(269, 66%, 56%) |
| CMYK | cmyk(34.3%, 66.4%, 0%, 43.9%) |
| CIE-LAB | lab(30.58, 40.10, -44.82) |
| CIE-LCH | lch(30.58, 60.14, 311.82°) |
| OKLab | oklab(41.9% 0.0814 -0.1273) |
| OKLCH | oklch(41.9% 0.151 302.6) |
| XYZ | xyz(10.6298, 6.4767, 26.6714) |
| Luminance | 0.0648 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.07
Purple (survey)
#7E1E9C
ΔE00 6.49
Darkslateblue
#483D8B
ΔE00 6.50
Blueberry
#464196
ΔE00 7.80
Indigo
#4B0082
ΔE00 8.29
Ocean Blue
#4F42B5
ΔE00 8.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E308F #618F30
analogous
#30318F #5E308F #8E308F
triadic
#5E308F #8F5E30 #308F5E
tetradic
#5E308F #8F3031 #618F30 #308F8E
square
#5E308F #8F3031 #618F30 #308F8E
split-complementary
#5E308F #8F8E30 #318F30
monochromatic
#221133 #402161 #5E308F #7C3FBD #9B6CCE
Accessibility & contrast
On white
9.15
#5E308F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#5E308F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E308F
9.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E308F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E308F | 1.00 | 9.15 | 2.30 | 9.15 |
| #FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#0D488D
Tritanopia (blue-blind)
#54455B
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #5e308f; /* rgb */ color: rgb(94, 48, 143); /* oklch */ color: oklch(41.9% 0.151 302.6);
Tailwind
colors: {
custom: {
50: '#906bb0',
500: '#5e308f',
950: '#000000',
},
}SCSS
$custom: #5e308f; $custom-light: #906bb0; $custom-dark: #000000;
JSON
{
"hex": "#5e308f",
"rgb": {
"r": 94,
"g": 48,
"b": 143
},
"hsl": {
"h": 269.053,
"s": 49.738,
"l": 37.451
},
"oklch": {
"l": 0.41904,
"c": 0.15107,
"h": 302.6
},
"luminance": 0.06477
}Semantic roles & 50–950 ramp
primary
#5E308F
secondary
#8FB566
accent
#D94F96
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80