#AB46E2#AB46E2
#AB46E2 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.9% C 0.231 H 311.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #AB46E2 |
|---|---|
| RGB | rgb(171, 70, 226) |
| HSL | hsl(279, 73%, 58%) |
| HSV | hsv(279, 69%, 89%) |
| CMYK | cmyk(24.3%, 69%, 0%, 11.4%) |
| CIE-LAB | lab(50.13, 65.33, -61.65) |
| CIE-LCH | lch(50.13, 89.83, 316.66°) |
| OKLab | oklab(59.89% 0.1514 -0.1743) |
| OKLCH | oklch(59.89% 0.231 311) |
| XYZ | xyz(32.7096, 18.5300, 73.7903) |
| Luminance | 0.1853 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.46
Neon Purple
#BC13FE
ΔE00 4.85
Electric Purple
#AA23FF
ΔE00 5.10
Lighter Purple
#A55AF4
ΔE00 5.11
Bright Purple
#BE03FD
ΔE00 5.12
Hot Purple
#CB00F5
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB46E2 #7DE246
analogous
#5D46E2 #AB46E2 #E246CB
triadic
#AB46E2 #E2AB46 #46E2AB
tetradic
#AB46E2 #E25D46 #7DE246 #46CBE2
square
#AB46E2 #E25D46 #7DE246 #46CBE2
split-complementary
#AB46E2 #CBE246 #46E25D
monochromatic
#691896 #8F20CB #AB46E2 #C37BEA #DBB0F3
Accessibility & contrast
On white
4.46
#AB46E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#AB46E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB46E2
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB46E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB46E2 | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#2F79DF
Tritanopia (blue-blind)
#A4688F
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #ab46e2; /* rgb */ color: rgb(171, 70, 226); /* oklch */ color: oklch(59.9% 0.231 311.0);
Tailwind
colors: {
custom: {
50: '#c981ec',
500: '#ab46e2',
950: '#000000',
},
}SCSS
$custom: #ab46e2; $custom-light: #c981ec; $custom-dark: #000000;
JSON
{
"hex": "#ab46e2",
"rgb": {
"r": 171,
"g": 70,
"b": 226
},
"hsl": {
"h": 278.846,
"s": 72.897,
"l": 58.039
},
"oklch": {
"l": 0.59893,
"c": 0.23084,
"h": 311
},
"luminance": 0.18529
}Semantic roles & 50–950 ramp
primary
#AB46E2
secondary
#B9E1A3
accent
#F03879
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84