#AB5CF2#AB5CF2
#AB5CF2 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.6% C 0.219 H 305.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #AB5CF2 |
|---|---|
| RGB | rgb(171, 92, 242) |
| HSL | hsl(272, 85%, 65%) |
| HSV | hsv(272, 62%, 95%) |
| CMYK | cmyk(29.3%, 62%, 0%, 5.1%) |
| CIE-LAB | lab(54.79, 58.80, -63.15) |
| CIE-LCH | lch(54.79, 86.28, 312.96°) |
| OKLab | oklab(63.56% 0.1262 -0.1788) |
| OKLCH | oklch(63.56% 0.219 305.2) |
| XYZ | xyz(36.6452, 22.7233, 86.4427) |
| Luminance | 0.2272 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 1.32
Lightish Purple
#A552E6
ΔE00 3.25
Light Urple
#B36FF6
ΔE00 4.75
Bright Lavender
#C760FF
ΔE00 5.21
Bright Lilac
#C95EFB
ΔE00 5.37
Mediumorchid
#BA55D3
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB5CF2 #A3F25C
analogous
#605CF2 #AB5CF2 #F25CEE
triadic
#AB5CF2 #F2AB5C #5CF2AB
tetradic
#AB5CF2 #F2605C #A3F25C #5CEEF2
square
#AB5CF2 #F2605C #A3F25C #5CEEF2
split-complementary
#AB5CF2 #EEF25C #5CF260
monochromatic
#6F10C4 #8E23ED #AB5CF2 #C895F7 #E5CDFB
Accessibility & contrast
On white
3.79
#AB5CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#AB5CF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB5CF2
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB5CF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB5CF2 | 1.00 | 3.79 | 5.54 | 5.54 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0081F7
Deuteranopia (green-blind)
#3883EF
Tritanopia (blue-blind)
#9F7B9F
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #ab5cf2; /* rgb */ color: rgb(171, 92, 242); /* oklch */ color: oklch(63.6% 0.219 305.2);
Tailwind
colors: {
custom: {
50: '#c88ef7',
500: '#ab5cf2',
950: '#000000',
},
}SCSS
$custom: #ab5cf2; $custom-light: #c88ef7; $custom-dark: #000000;
JSON
{
"hex": "#ab5cf2",
"rgb": {
"r": 171,
"g": 92,
"b": 242
},
"hsl": {
"h": 271.6,
"s": 85.227,
"l": 65.49
},
"oklch": {
"l": 0.63563,
"c": 0.21884,
"h": 305.2
},
"luminance": 0.22723
}Semantic roles & 50–950 ramp
primary
#AB5CF2
secondary
#D4EEBC
accent
#E2046D
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140D17
muted
#827D85