#51269F#51269F
#51269F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.181 H 292.6°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).
Color values
| HEX | #51269F |
|---|---|
| RGB | rgb(81, 38, 159) |
| HSL | hsl(261, 61%, 39%) |
| HSV | hsv(261, 76%, 62%) |
| CMYK | cmyk(49.1%, 76.1%, 0%, 37.6%) |
| CIE-LAB | lab(28.48, 46.98, -58.11) |
| CIE-LCH | lch(28.48, 74.72, 308.96°) |
| OKLab | oklab(40.46% 0.0694 -0.1667) |
| OKLCH | oklch(40.46% 0.181 292.6) |
| XYZ | xyz(10.3427, 5.6384, 33.3375) |
| Luminance | 0.0564 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.57
Rebeccapurple
#663399
ΔE00 5.10
Violet Blue
#510AC9
ΔE00 6.01
Purple Blue
#5D21D0
ΔE00 6.76
Indigo
#4B0082
ΔE00 6.89
Ultramarine
#2000B1
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51269F #749F26
analogous
#26389F #51269F #8D269F
triadic
#51269F #9F5126 #269F51
tetradic
#51269F #9F2638 #749F26 #269F8D
square
#51269F #9F2638 #749F26 #269F8D
split-complementary
#51269F #9F8D26 #389F26
monochromatic
#1F0E3C #381A6E #51269F #6B34CE #8F65DA
Accessibility & contrast
On white
9.87
#51269F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#51269F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51269F
9.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51269F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51269F | 1.00 | 9.87 | 2.13 | 9.87 |
| #FFFFFF | 9.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#384761
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #51269f; /* rgb */ color: rgb(81, 38, 159); /* oklch */ color: oklch(40.5% 0.181 292.6);
Tailwind
colors: {
custom: {
50: '#8a65bc',
500: '#51269f',
950: '#000000',
},
}SCSS
$custom: #51269f; $custom-light: #8a65bc; $custom-dark: #000000;
JSON
{
"hex": "#51269f",
"rgb": {
"r": 81,
"g": 38,
"b": 159
},
"hsl": {
"h": 261.322,
"s": 61.421,
"l": 38.627
},
"oklch": {
"l": 0.40458,
"c": 0.18062,
"h": 292.6
},
"luminance": 0.05639
}Semantic roles & 50–950 ramp
primary
#51269F
secondary
#9EC061
accent
#E543AB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81