#51289F#51289F
#51289F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.178 H 292.3°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).
Color values
| HEX | #51289F |
|---|---|
| RGB | rgb(81, 40, 159) |
| HSL | hsl(261, 60%, 39%) |
| HSV | hsv(261, 75%, 62%) |
| CMYK | cmyk(49.1%, 74.8%, 0%, 37.6%) |
| CIE-LAB | lab(28.82, 46.01, -57.55) |
| CIE-LCH | lch(28.82, 73.68, 308.64°) |
| OKLab | oklab(40.7% 0.0677 -0.1651) |
| OKLCH | oklch(40.7% 0.178 292.3) |
| XYZ | xyz(10.4084, 5.7697, 33.3594) |
| Luminance | 0.0577 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.78
Rebeccapurple
#663399
ΔE00 4.91
Violet Blue
#510AC9
ΔE00 6.18
Purple Blue
#5D21D0
ΔE00 6.76
Darkslateblue
#483D8B
ΔE00 7.18
Indigo
#4B0082
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51289F #769F28
analogous
#283B9F #51289F #8D289F
triadic
#51289F #9F5128 #289F51
tetradic
#51289F #9F283B #769F28 #289F8D
square
#51289F #9F283B #769F28 #289F8D
split-complementary
#51289F #9F8D28 #3B9F28
monochromatic
#1F0F3D #381C6E #51289F #6B37CD #8F68D9
Accessibility & contrast
On white
9.75
#51289F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#51289F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51289F
9.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51289F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51289F | 1.00 | 9.75 | 2.15 | 9.75 |
| #FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#384861
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #51289f; /* rgb */ color: rgb(81, 40, 159); /* oklch */ color: oklch(40.7% 0.178 292.3);
Tailwind
colors: {
custom: {
50: '#8a66bc',
500: '#51289f',
950: '#000000',
},
}SCSS
$custom: #51289f; $custom-light: #8a66bc; $custom-dark: #000000;
JSON
{
"hex": "#51289f",
"rgb": {
"r": 81,
"g": 40,
"b": 159
},
"hsl": {
"h": 260.672,
"s": 59.799,
"l": 39.02
},
"oklch": {
"l": 0.40699,
"c": 0.17845,
"h": 292.3
},
"luminance": 0.0577
}Semantic roles & 50–950 ramp
primary
#51289F
secondary
#A0BF64
accent
#E345AC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81