#51219F#51219F
#51219F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.186 H 293.3°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).
Color values
| HEX | #51219F |
|---|---|
| RGB | rgb(81, 33, 159) |
| HSL | hsl(263, 66%, 38%) |
| HSV | hsv(263, 79%, 62%) |
| CMYK | cmyk(49.1%, 79.2%, 0%, 37.6%) |
| CIE-LAB | lab(27.68, 49.27, -59.42) |
| CIE-LCH | lch(27.68, 77.19, 309.67°) |
| OKLab | oklab(39.9% 0.0735 -0.1705) |
| OKLCH | oklch(39.9% 0.186 293.3) |
| XYZ | xyz(10.1935, 5.3399, 33.2878) |
| Luminance | 0.0534 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.20
Rebeccapurple
#663399
ΔE00 5.63
Violet Blue
#510AC9
ΔE00 5.69
Indigo
#4B0082
ΔE00 6.18
Purple Blue
#5D21D0
ΔE00 6.84
Ultramarine
#2000B1
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51219F #6F9F21
analogous
#21309F #51219F #90219F
triadic
#51219F #9F5121 #219F51
tetradic
#51219F #9F2130 #6F9F21 #219F90
square
#51219F #9F2130 #6F9F21 #219F90
split-complementary
#51219F #9F9021 #309F21
monochromatic
#1D0C3A #37166C #51219F #6B2CD2 #8E5DDD
Accessibility & contrast
On white
10.15
#51219F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#51219F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51219F
10.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51219F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51219F | 1.00 | 10.15 | 2.07 | 10.15 |
| #FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#384560
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #51219f; /* rgb */ color: rgb(81, 33, 159); /* oklch */ color: oklch(39.9% 0.186 293.3);
Tailwind
colors: {
custom: {
50: '#8a62bc',
500: '#51219f',
950: '#000000',
},
}SCSS
$custom: #51219f; $custom-light: #8a62bc; $custom-dark: #000000;
JSON
{
"hex": "#51219f",
"rgb": {
"r": 81,
"g": 33,
"b": 159
},
"hsl": {
"h": 262.857,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.39899,
"c": 0.18569,
"h": 293.3
},
"luminance": 0.0534
}Semantic roles & 50–950 ramp
primary
#51219F
secondary
#9AC25A
accent
#E93FA8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81