#51209F#51209F
#51209F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.187 H 293.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).
Color values
| HEX | #51209F |
|---|---|
| RGB | rgb(81, 32, 159) |
| HSL | hsl(263, 66%, 37%) |
| HSV | hsv(263, 80%, 62%) |
| CMYK | cmyk(49.1%, 79.9%, 0%, 37.6%) |
| CIE-LAB | lab(27.53, 49.70, -59.66) |
| CIE-LCH | lch(27.53, 77.65, 309.80°) |
| OKLab | oklab(39.79% 0.0742 -0.1713) |
| OKLCH | oklch(39.79% 0.187 293.4) |
| XYZ | xyz(10.1661, 5.2852, 33.2787) |
| Luminance | 0.0529 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.14
Violet Blue
#510AC9
ΔE00 5.65
Rebeccapurple
#663399
ΔE00 5.74
Indigo
#4B0082
ΔE00 6.06
Ultramarine
#2000B1
ΔE00 6.78
Purple Blue
#5D21D0
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51209F #6E9F20
analogous
#202E9F #51209F #91209F
triadic
#51209F #9F5120 #209F51
tetradic
#51209F #9F202E #6E9F20 #209F91
square
#51209F #9F202E #6E9F20 #209F91
split-complementary
#51209F #9F9120 #2E9F20
monochromatic
#1D0B39 #37166C #51209F #6B2AD2 #8E5BDE
Accessibility & contrast
On white
10.21
#51209F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#51209F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51209F
10.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51209F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51209F | 1.00 | 10.21 | 2.06 | 10.21 |
| #FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#384460
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #51209f; /* rgb */ color: rgb(81, 32, 159); /* oklch */ color: oklch(39.8% 0.187 293.4);
Tailwind
colors: {
custom: {
50: '#8a62bc',
500: '#51209f',
950: '#000000',
},
}SCSS
$custom: #51209f; $custom-light: #8a62bc; $custom-dark: #000000;
JSON
{
"hex": "#51209f",
"rgb": {
"r": 81,
"g": 32,
"b": 159
},
"hsl": {
"h": 263.15,
"s": 66.492,
"l": 37.451
},
"oklch": {
"l": 0.39794,
"c": 0.18664,
"h": 293.4
},
"luminance": 0.05286
}Semantic roles & 50–950 ramp
primary
#51209F
secondary
#99C259
accent
#E93EA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81