#51209C#51209C
#51209C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.183 H 294.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).
Color values
| HEX | #51209C |
|---|---|
| RGB | rgb(81, 32, 156) |
| HSL | hsl(264, 66%, 37%) |
| HSV | hsv(264, 79%, 61%) |
| CMYK | cmyk(48.1%, 79.5%, 0%, 38.8%) |
| CIE-LAB | lab(27.25, 48.91, -58.30) |
| CIE-LCH | lch(27.25, 76.10, 309.99°) |
| OKLab | oklab(39.51% 0.0752 -0.1673) |
| OKLCH | oklch(39.51% 0.183 294.2) |
| XYZ | xyz(9.9090, 5.1824, 31.9242) |
| Luminance | 0.0518 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.46
Rebeccapurple
#663399
ΔE00 5.64
Indigo
#4B0082
ΔE00 5.73
Violet Blue
#510AC9
ΔE00 6.07
Indigo (survey)
#380282
ΔE00 6.66
Ultramarine
#2000B1
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51209C #6B9C20
analogous
#202D9C #51209C #8F209C
triadic
#51209C #9C5120 #209C51
tetradic
#51209C #9C202D #6B9C20 #209C8F
square
#51209C #9C202D #6B9C20 #209C8F
split-complementary
#51209C #9C8F20 #2D9C20
monochromatic
#1C0B36 #371669 #51209C #6B2ACF #8D59DD
Accessibility & contrast
On white
10.31
#51209C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#51209C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51209C
10.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51209C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51209C | 1.00 | 10.31 | 2.04 | 10.31 |
| #FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#3A435E
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #51209c; /* rgb */ color: rgb(81, 32, 156); /* oklch */ color: oklch(39.5% 0.183 294.2);
Tailwind
colors: {
custom: {
50: '#8a62ba',
500: '#51209c',
950: '#000000',
},
}SCSS
$custom: #51209c; $custom-light: #8a62ba; $custom-dark: #000000;
JSON
{
"hex": "#51209c",
"rgb": {
"r": 81,
"g": 32,
"b": 156
},
"hsl": {
"h": 263.71,
"s": 65.957,
"l": 36.863
},
"oklch": {
"l": 0.3951,
"c": 0.18337,
"h": 294.2
},
"luminance": 0.05183
}Semantic roles & 50–950 ramp
primary
#51209C
secondary
#97C157
accent
#E93FA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81