#48117E#48117E
#48117E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.164 H 300.0°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).
Color values
| HEX | #48117E |
|---|---|
| RGB | rgb(72, 17, 126) |
| HSL | hsl(270, 76%, 28%) |
| HSV | hsv(270, 87%, 49%) |
| CMYK | cmyk(42.9%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(21.15, 45.77, -49.67) |
| CIE-LCH | lch(21.15, 67.55, 312.66°) |
| OKLab | oklab(34.14% 0.082 -0.1421) |
| OKLCH | oklch(34.14% 0.164 300) |
| XYZ | xyz(6.6379, 3.2849, 20.0189) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 1.85
Indigo (survey)
#380282
ΔE00 3.42
Royal Purple (survey)
#4B006E
ΔE00 3.56
Midnight Blue
#191970
ΔE00 7.76
Royal
#0C1793
ΔE00 7.81
Darkblue
#00008B
ΔE00 7.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#48117E #477E11
analogous
#11117E #48117E #7E117D
triadic
#48117E #7E4811 #117E48
tetradic
#48117E #7E1111 #477E11 #117D7E
square
#48117E #7E1111 #477E11 #117D7E
split-complementary
#48117E #7D7E11 #117E11
monochromatic
#0F041B #290A48 #48117E #6718B4 #8627E2
Accessibility & contrast
On white
12.67
#48117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#48117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #48117E
12.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##48117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##48117E | 1.00 | 12.67 | 1.66 | 12.67 |
| #FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#3B314A
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #48117e; /* rgb */ color: rgb(72, 17, 126); /* oklch */ color: oklch(34.1% 0.164 300.0);
Tailwind
colors: {
custom: {
50: '#8158a4',
500: '#48117e',
950: '#000000',
},
}SCSS
$custom: #48117e; $custom-light: #8158a4; $custom-dark: #000000;
JSON
{
"hex": "#48117e",
"rgb": {
"r": 72,
"g": 17,
"b": 126
},
"hsl": {
"h": 270.275,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.34145,
"c": 0.16411,
"h": 300
},
"luminance": 0.03285
}Semantic roles & 50–950 ramp
primary
#48117E
secondary
#75B437
accent
#F33593
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F