#52308E#52308E
#52308E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.148 H 295.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #52308E |
|---|---|
| RGB | rgb(82, 48, 142) |
| HSL | hsl(262, 49%, 37%) |
| HSV | hsv(262, 66%, 56%) |
| CMYK | cmyk(42.3%, 66.2%, 0%, 44.3%) |
| CIE-LAB | lab(29.06, 37.16, -46.74) |
| CIE-LCH | lch(29.06, 59.71, 308.48°) |
| OKLab | oklab(40.45% 0.0641 -0.1334) |
| OKLCH | oklch(40.45% 0.148 295.7) |
| XYZ | xyz(9.4178, 5.8605, 26.2209) |
| Luminance | 0.0586 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.95
Darkslateblue
#483D8B
ΔE00 4.84
Blueberry
#464196
ΔE00 6.18
Ocean Blue
#4F42B5
ΔE00 7.80
Indigo Blue
#3A18B1
ΔE00 7.90
Indigo
#4B0082
ΔE00 7.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#52308E #6C8E30
analogous
#303D8E #52308E #81308E
triadic
#52308E #8E5230 #308E52
tetradic
#52308E #8E303D #6C8E30 #308E81
square
#52308E #8E303D #6C8E30 #308E81
split-complementary
#52308E #8E8130 #3D8E30
monochromatic
#1D1133 #382160 #52308E #6C3FBC #8F6BCD
Accessibility & contrast
On white
9.67
#52308E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#52308E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #52308E
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##52308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##52308E | 1.00 | 9.67 | 2.17 | 9.67 |
| #FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#43465A
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #52308e; /* rgb */ color: rgb(82, 48, 142); /* oklch */ color: oklch(40.5% 0.148 295.7);
Tailwind
colors: {
custom: {
50: '#886ab0',
500: '#52308e',
950: '#000000',
},
}SCSS
$custom: #52308e; $custom-light: #886ab0; $custom-dark: #000000;
JSON
{
"hex": "#52308e",
"rgb": {
"r": 82,
"g": 48,
"b": 142
},
"hsl": {
"h": 261.702,
"s": 49.474,
"l": 37.255
},
"oklch": {
"l": 0.40451,
"c": 0.14799,
"h": 295.7
},
"luminance": 0.05861
}Semantic roles & 50–950 ramp
primary
#52308E
secondary
#98B465
accent
#D94FA7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F