#AB71E2#AB71E2
#AB71E2 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.6% C 0.170 H 306.0°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #AB71E2 |
|---|---|
| RGB | rgb(171, 113, 226) |
| HSL | hsl(271, 66%, 66%) |
| HSV | hsv(271, 50%, 89%) |
| CMYK | cmyk(24.3%, 50%, 0%, 11.4%) |
| CIE-LAB | lab(58.00, 44.22, -49.07) |
| CIE-LCH | lch(58.00, 66.05, 312.02°) |
| OKLab | oklab(65.63% 0.0998 -0.1376) |
| OKLCH | oklch(65.63% 0.17 306) |
| XYZ | xyz(36.4243, 25.9594, 75.0286) |
| Luminance | 0.2596 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.06
Light Purple
#BF77F6
ΔE00 4.39
Mediumpurple
#9370DB
ΔE00 4.77
Easter Purple
#C071FE
ΔE00 4.85
Bright Lavender
#C760FF
ΔE00 6.21
Lighter Purple
#A55AF4
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB71E2 #A8E271
analogous
#7371E2 #AB71E2 #E271E1
triadic
#AB71E2 #E2AB71 #71E2AB
tetradic
#AB71E2 #E27371 #A8E271 #71E1E2
square
#AB71E2 #E27371 #A8E271 #71E1E2
split-complementary
#AB71E2 #E1E271 #71E273
monochromatic
#6E25B4 #8D3ED8 #AB71E2 #C9A4EC #E7D7F7
Accessibility & contrast
On white
3.39
#AB71E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.19
#AB71E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB71E2
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB71E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB71E2 | 1.00 | 3.39 | 6.19 | 6.19 |
| #FFFFFF | 3.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5089E6
Deuteranopia (green-blind)
#618CDF
Tritanopia (blue-blind)
#A2859F
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #ab71e2; /* rgb */ color: rgb(171, 113, 226); /* oklch */ color: oklch(65.6% 0.170 306.0);
Tailwind
colors: {
custom: {
50: '#c69beb',
500: '#ab71e2',
950: '#000000',
},
}SCSS
$custom: #ab71e2; $custom-light: #c69beb; $custom-dark: #000000;
JSON
{
"hex": "#ab71e2",
"rgb": {
"r": 171,
"g": 113,
"b": 226
},
"hsl": {
"h": 270.796,
"s": 66.082,
"l": 66.471
},
"oklch": {
"l": 0.65626,
"c": 0.16998,
"h": 306
},
"luminance": 0.25959
}Semantic roles & 50–950 ramp
primary
#AB71E2
secondary
#D7EAC5
accent
#CE1870
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84