#51259F#51259F
#51259F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.182 H 292.8°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).
Color values
| HEX | #51259F |
|---|---|
| RGB | rgb(81, 37, 159) |
| HSL | hsl(262, 62%, 38%) |
| HSV | hsv(262, 77%, 62%) |
| CMYK | cmyk(49.1%, 76.7%, 0%, 37.6%) |
| CIE-LAB | lab(28.31, 47.45, -58.38) |
| CIE-LCH | lch(28.31, 75.23, 309.11°) |
| OKLab | oklab(40.34% 0.0703 -0.1675) |
| OKLCH | oklch(40.34% 0.182 292.8) |
| XYZ | xyz(10.3112, 5.5753, 33.3270) |
| Luminance | 0.0558 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.48
Rebeccapurple
#663399
ΔE00 5.20
Violet Blue
#510AC9
ΔE00 5.93
Indigo
#4B0082
ΔE00 6.73
Purple Blue
#5D21D0
ΔE00 6.76
Ultramarine
#2000B1
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51259F #739F25
analogous
#25369F #51259F #8E259F
triadic
#51259F #9F5125 #259F51
tetradic
#51259F #9F2536 #739F25 #259F8E
square
#51259F #9F2536 #739F25 #259F8E
split-complementary
#51259F #9F8E25 #369F25
monochromatic
#1E0E3C #38196D #51259F #6B32CF #8F64DB
Accessibility & contrast
On white
9.93
#51259F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#51259F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51259F
9.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51259F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51259F | 1.00 | 9.93 | 2.12 | 9.93 |
| #FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#384661
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #51259f; /* rgb */ color: rgb(81, 37, 159); /* oklch */ color: oklch(40.3% 0.182 292.8);
Tailwind
colors: {
custom: {
50: '#8a65bc',
500: '#51259f',
950: '#000000',
},
}SCSS
$custom: #51259f; $custom-light: #8a65bc; $custom-dark: #000000;
JSON
{
"hex": "#51259f",
"rgb": {
"r": 81,
"g": 37,
"b": 159
},
"hsl": {
"h": 261.639,
"s": 62.245,
"l": 38.431
},
"oklch": {
"l": 0.40341,
"c": 0.18167,
"h": 292.8
},
"luminance": 0.05576
}Semantic roles & 50–950 ramp
primary
#51259F
secondary
#9DC05F
accent
#E542AB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81