#51239C#51239C
#51239C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.180 H 293.8°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).
Color values
| HEX | #51239C |
|---|---|
| RGB | rgb(81, 35, 156) |
| HSL | hsl(263, 63%, 37%) |
| HSV | hsv(263, 78%, 61%) |
| CMYK | cmyk(48.1%, 77.6%, 0%, 38.8%) |
| CIE-LAB | lab(27.71, 47.57, -57.54) |
| CIE-LCH | lch(27.71, 74.66, 309.58°) |
| OKLab | oklab(39.84% 0.0728 -0.165) |
| OKLCH | oklch(39.84% 0.18 293.8) |
| XYZ | xyz(9.9935, 5.3514, 31.9524) |
| Luminance | 0.0535 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.63
Rebeccapurple
#663399
ΔE00 5.30
Indigo
#4B0082
ΔE00 6.15
Violet Blue
#510AC9
ΔE00 6.21
Indigo (survey)
#380282
ΔE00 7.04
Purple Blue
#5D21D0
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51239C #6E9C23
analogous
#23319C #51239C #8E239C
triadic
#51239C #9C5123 #239C51
tetradic
#51239C #9C2331 #6E9C23 #239C8E
square
#51239C #9C2331 #6E9C23 #239C8E
split-complementary
#51239C #9C8E23 #319C23
monochromatic
#1D0D38 #37186A #51239C #6B2ECE #8E5EDB
Accessibility & contrast
On white
10.14
#51239C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#51239C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51239C
10.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51239C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51239C | 1.00 | 10.14 | 2.07 | 10.14 |
| #FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#3A445E
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #51239c; /* rgb */ color: rgb(81, 35, 156); /* oklch */ color: oklch(39.8% 0.180 293.8);
Tailwind
colors: {
custom: {
50: '#8a63ba',
500: '#51239c',
950: '#000000',
},
}SCSS
$custom: #51239c; $custom-light: #8a63ba; $custom-dark: #000000;
JSON
{
"hex": "#51239c",
"rgb": {
"r": 81,
"g": 35,
"b": 156
},
"hsl": {
"h": 262.81,
"s": 63.351,
"l": 37.451
},
"oklch": {
"l": 0.39835,
"c": 0.18037,
"h": 293.8
},
"luminance": 0.05352
}Semantic roles & 50–950 ramp
primary
#51239C
secondary
#99C05B
accent
#E641A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81