#52318E#52318E
#52318E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.147 H 295.4°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #52318E |
|---|---|
| RGB | rgb(82, 49, 142) |
| HSL | hsl(261, 49%, 37%) |
| HSV | hsv(261, 65%, 56%) |
| CMYK | cmyk(42.3%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(29.27, 36.58, -46.40) |
| CIE-LCH | lch(29.27, 59.09, 308.25°) |
| OKLab | oklab(40.6% 0.063 -0.1324) |
| OKLCH | oklch(40.6% 0.147 295.4) |
| XYZ | xyz(9.4592, 5.9432, 26.2347) |
| Luminance | 0.0594 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.95
Darkslateblue
#483D8B
ΔE00 4.61
Blueberry
#464196
ΔE00 5.96
Ocean Blue
#4F42B5
ΔE00 7.66
Indigo Blue
#3A18B1
ΔE00 8.06
Indigo
#4B0082
ΔE00 8.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#52318E #6D8E31
analogous
#313F8E #52318E #80318E
triadic
#52318E #8E5231 #318E52
tetradic
#52318E #8E313F #6D8E31 #318E80
square
#52318E #8E313F #6D8E31 #318E80
split-complementary
#52318E #8E8031 #3F8E31
monochromatic
#1D1233 #382161 #52318E #6C41BB #8F6DCD
Accessibility & contrast
On white
9.60
#52318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#52318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #52318E
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##52318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##52318E | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#42465B
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #52318e; /* rgb */ color: rgb(82, 49, 142); /* oklch */ color: oklch(40.6% 0.147 295.4);
Tailwind
colors: {
custom: {
50: '#886bb0',
500: '#52318e',
950: '#000000',
},
}SCSS
$custom: #52318e; $custom-light: #886bb0; $custom-dark: #000000;
JSON
{
"hex": "#52318e",
"rgb": {
"r": 82,
"g": 49,
"b": 142
},
"hsl": {
"h": 261.29,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.40603,
"c": 0.14658,
"h": 295.4
},
"luminance": 0.05943
}Semantic roles & 50–950 ramp
primary
#52318E
secondary
#99B467
accent
#D850A8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F