#51269D#51269D
#51269D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.178 H 293.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).
Color values
| HEX | #51269D |
|---|---|
| RGB | rgb(81, 38, 157) |
| HSL | hsl(262, 61%, 38%) |
| HSV | hsv(262, 76%, 62%) |
| CMYK | cmyk(48.4%, 75.8%, 0%, 38.4%) |
| CIE-LAB | lab(28.30, 46.43, -57.19) |
| CIE-LCH | lch(28.30, 73.66, 309.07°) |
| OKLab | oklab(40.27% 0.07 -0.164) |
| OKLCH | oklch(40.27% 0.178 293.1) |
| XYZ | xyz(10.1706, 5.5695, 32.4309) |
| Luminance | 0.0557 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.76
Rebeccapurple
#663399
ΔE00 5.01
Violet Blue
#510AC9
ΔE00 6.28
Indigo
#4B0082
ΔE00 6.70
Purple Blue
#5D21D0
ΔE00 7.04
Darkslateblue
#483D8B
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51269D #729D26
analogous
#26369D #51269D #8C269D
triadic
#51269D #9D5126 #269D51
tetradic
#51269D #9D2636 #729D26 #269D8C
square
#51269D #9D2636 #729D26 #269D8C
split-complementary
#51269D #9D8C26 #369D26
monochromatic
#1E0E3A #381A6C #51269D #6B33CE #8E64D9
Accessibility & contrast
On white
9.93
#51269D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#51269D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51269D
9.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51269D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51269D | 1.00 | 9.93 | 2.11 | 9.93 |
| #FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#394660
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #51269d; /* rgb */ color: rgb(81, 38, 157); /* oklch */ color: oklch(40.3% 0.178 293.1);
Tailwind
colors: {
custom: {
50: '#8a65bb',
500: '#51269d',
950: '#000000',
},
}SCSS
$custom: #51269d; $custom-light: #8a65bb; $custom-dark: #000000;
JSON
{
"hex": "#51269d",
"rgb": {
"r": 81,
"g": 38,
"b": 157
},
"hsl": {
"h": 261.681,
"s": 61.026,
"l": 38.235
},
"oklch": {
"l": 0.40274,
"c": 0.17833,
"h": 293.1
},
"luminance": 0.0557
}Semantic roles & 50–950 ramp
primary
#51269D
secondary
#9DBF60
accent
#E444AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81