#51229F#51229F
#51229F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.185 H 293.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).
Color values
| HEX | #51229F |
|---|---|
| RGB | rgb(81, 34, 159) |
| HSL | hsl(263, 65%, 38%) |
| HSV | hsv(263, 79%, 62%) |
| CMYK | cmyk(49.1%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(27.84, 48.83, -59.17) |
| CIE-LCH | lch(27.84, 76.71, 309.53°) |
| OKLab | oklab(40.01% 0.0727 -0.1698) |
| OKLCH | oklch(40.01% 0.185 293.2) |
| XYZ | xyz(10.2216, 5.3962, 33.2972) |
| Luminance | 0.0540 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.25
Rebeccapurple
#663399
ΔE00 5.52
Violet Blue
#510AC9
ΔE00 5.74
Indigo
#4B0082
ΔE00 6.31
Purple Blue
#5D21D0
ΔE00 6.81
Ultramarine
#2000B1
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51229F #709F22
analogous
#22319F #51229F #8F229F
triadic
#51229F #9F5122 #229F51
tetradic
#51229F #9F2231 #709F22 #229F8F
square
#51229F #9F2231 #709F22 #229F8F
split-complementary
#51229F #9F8F22 #319F22
monochromatic
#1E0C3A #37176D #51229F #6B2DD1 #8E5FDD
Accessibility & contrast
On white
10.10
#51229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#51229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51229F
10.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51229F | 1.00 | 10.10 | 2.08 | 10.10 |
| #FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#384560
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #51229f; /* rgb */ color: rgb(81, 34, 159); /* oklch */ color: oklch(40.0% 0.185 293.2);
Tailwind
colors: {
custom: {
50: '#8a63bc',
500: '#51229f',
950: '#000000',
},
}SCSS
$custom: #51229f; $custom-light: #8a63bc; $custom-dark: #000000;
JSON
{
"hex": "#51229f",
"rgb": {
"r": 81,
"g": 34,
"b": 159
},
"hsl": {
"h": 262.56,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.40005,
"c": 0.18471,
"h": 293.2
},
"luminance": 0.05397
}Semantic roles & 50–950 ramp
primary
#51229F
secondary
#9BC15B
accent
#E840A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81