#51219E#51219E
#51219E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.185 H 293.6°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).
Color values
| HEX | #51219E |
|---|---|
| RGB | rgb(81, 33, 158) |
| HSL | hsl(263, 65%, 37%) |
| HSV | hsv(263, 79%, 62%) |
| CMYK | cmyk(48.7%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(27.59, 49.00, -58.96) |
| CIE-LCH | lch(27.59, 76.67, 309.73°) |
| OKLab | oklab(39.8% 0.0738 -0.1692) |
| OKLCH | oklch(39.8% 0.185 293.6) |
| XYZ | xyz(10.1070, 5.3053, 32.8326) |
| Luminance | 0.0531 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.30
Rebeccapurple
#663399
ΔE00 5.59
Violet Blue
#510AC9
ΔE00 5.83
Indigo
#4B0082
ΔE00 6.07
Indigo (survey)
#380282
ΔE00 6.94
Ultramarine
#2000B1
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51219E #6E9E21
analogous
#21309E #51219E #90219E
triadic
#51219E #9E5121 #219E51
tetradic
#51219E #9E2130 #6E9E21 #219E90
square
#51219E #9E2130 #6E9E21 #219E90
split-complementary
#51219E #9E9021 #309E21
monochromatic
#1D0C39 #37166B #51219E #6B2CD1 #8E5CDD
Accessibility & contrast
On white
10.19
#51219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#51219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51219E
10.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51219E | 1.00 | 10.19 | 2.06 | 10.19 |
| #FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#39445F
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #51219e; /* rgb */ color: rgb(81, 33, 158); /* oklch */ color: oklch(39.8% 0.185 293.6);
Tailwind
colors: {
custom: {
50: '#8a62bc',
500: '#51219e',
950: '#000000',
},
}SCSS
$custom: #51219e; $custom-light: #8a62bc; $custom-dark: #000000;
JSON
{
"hex": "#51219e",
"rgb": {
"r": 81,
"g": 33,
"b": 158
},
"hsl": {
"h": 263.04,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.39804,
"c": 0.18459,
"h": 293.6
},
"luminance": 0.05306
}Semantic roles & 50–950 ramp
primary
#51219E
secondary
#99C159
accent
#E83FA8
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81