#51249F#51249F
#51249F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.183 H 292.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).
Color values
| HEX | #51249F |
|---|---|
| RGB | rgb(81, 36, 159) |
| HSL | hsl(262, 63%, 38%) |
| HSV | hsv(262, 77%, 62%) |
| CMYK | cmyk(49.1%, 77.4%, 0%, 37.6%) |
| CIE-LAB | lab(28.15, 47.92, -58.65) |
| CIE-LCH | lch(28.15, 75.74, 309.25°) |
| OKLab | oklab(40.23% 0.0711 -0.1683) |
| OKLCH | oklch(40.23% 0.183 292.9) |
| XYZ | xyz(10.2805, 5.5139, 33.3168) |
| Luminance | 0.0551 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.39
Rebeccapurple
#663399
ΔE00 5.31
Violet Blue
#510AC9
ΔE00 5.86
Indigo
#4B0082
ΔE00 6.59
Purple Blue
#5D21D0
ΔE00 6.78
Ultramarine
#2000B1
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51249F #729F24
analogous
#24349F #51249F #8E249F
triadic
#51249F #9F5124 #249F51
tetradic
#51249F #9F2434 #729F24 #249F8E
square
#51249F #9F2434 #729F24 #249F8E
split-complementary
#51249F #9F8E24 #349F24
monochromatic
#1E0D3B #38196D #51249F #6B30D0 #8E62DB
Accessibility & contrast
On white
9.99
#51249F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#51249F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51249F
9.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51249F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51249F | 1.00 | 9.99 | 2.10 | 9.99 |
| #FFFFFF | 9.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#384660
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #51249f; /* rgb */ color: rgb(81, 36, 159); /* oklch */ color: oklch(40.2% 0.183 292.9);
Tailwind
colors: {
custom: {
50: '#8a64bc',
500: '#51249f',
950: '#000000',
},
}SCSS
$custom: #51249f; $custom-light: #8a64bc; $custom-dark: #000000;
JSON
{
"hex": "#51249f",
"rgb": {
"r": 81,
"g": 36,
"b": 159
},
"hsl": {
"h": 261.951,
"s": 63.077,
"l": 38.235
},
"oklch": {
"l": 0.40226,
"c": 0.18271,
"h": 292.9
},
"luminance": 0.05514
}Semantic roles & 50–950 ramp
primary
#51249F
secondary
#9DC15E
accent
#E642AA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81