#46157C#46157C
#46157C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.158 H 299.0°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).
Color values
| HEX | #46157C |
|---|---|
| RGB | rgb(70, 21, 124) |
| HSL | hsl(269, 71%, 28%) |
| HSV | hsv(269, 83%, 49%) |
| CMYK | cmyk(43.5%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(21.18, 43.47, -48.36) |
| CIE-LCH | lch(21.18, 65.02, 311.95°) |
| OKLab | oklab(34.05% 0.0766 -0.1384) |
| OKLCH | oklch(34.05% 0.158 299) |
| XYZ | xyz(6.4311, 3.2936, 19.3618) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.58
Indigo (survey)
#380282
ΔE00 3.67
Royal Purple (survey)
#4B006E
ΔE00 3.82
Midnight Blue
#191970
ΔE00 7.26
Royal
#0C1793
ΔE00 7.68
Darkblue
#00008B
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#46157C #4B7C15
analogous
#15177C #46157C #79157C
triadic
#46157C #7C4615 #157C46
tetradic
#46157C #7C1517 #4B7C15 #157C79
square
#46157C #7C1517 #4B7C15 #157C79
split-complementary
#46157C #7C7915 #177C15
monochromatic
#0F041A #280C48 #46157C #641EB0 #8230DC
Accessibility & contrast
On white
12.66
#46157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#46157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #46157C
12.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##46157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##46157C | 1.00 | 12.66 | 1.66 | 12.66 |
| #FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#393249
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #46157c; /* rgb */ color: rgb(70, 21, 124); /* oklch */ color: oklch(34.0% 0.158 299.0);
Tailwind
colors: {
custom: {
50: '#8059a3',
500: '#46157c',
950: '#000000',
},
}SCSS
$custom: #46157c; $custom-light: #8059a3; $custom-dark: #000000;
JSON
{
"hex": "#46157c",
"rgb": {
"r": 70,
"g": 21,
"b": 124
},
"hsl": {
"h": 268.544,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.34047,
"c": 0.15818,
"h": 299
},
"luminance": 0.03294
}Semantic roles & 50–950 ramp
primary
#46157C
secondary
#79B13C
accent
#EE3A98
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F