#AF87E4#AF87E4
#AF87E4 is a light, vivid violet. Relative luminance 0.320; OKLCH L 69.8% C 0.138 H 302.8°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).
Color values
| HEX | #AF87E4 |
|---|---|
| RGB | rgb(175, 135, 228) |
| HSL | hsl(266, 63%, 71%) |
| HSV | hsv(266, 41%, 89%) |
| CMYK | cmyk(23.2%, 40.8%, 0%, 10.6%) |
| CIE-LAB | lab(63.38, 33.61, -41.67) |
| CIE-LCH | lch(63.38, 53.54, 308.89°) |
| OKLab | oklab(69.78% 0.0748 -0.1161) |
| OKLCH | oklch(69.78% 0.138 302.8) |
| XYZ | xyz(40.3437, 32.0434, 77.4433) |
| Luminance | 0.3204 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 4.77
Pale Purple
#B790D4
ΔE00 5.42
Light Purple
#BF77F6
ΔE00 5.73
Wisteria
#A87DC2
ΔE00 6.48
Baby Purple
#CA9BF7
ΔE00 6.55
Light Urple
#B36FF6
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF87E4 #BCE487
analogous
#878DE4 #AF87E4 #DD87E4
triadic
#AF87E4 #E4AF87 #87E4AF
tetradic
#AF87E4 #E4878D #BCE487 #87E4DD
square
#AF87E4 #E4878D #BCE487 #87E4DD
split-complementary
#AF87E4 #E4DD87 #8DE487
monochromatic
#6E2CC4 #8E55D9 #AF87E4 #D0B9EF #EEE6F9
Accessibility & contrast
On white
2.83
#AF87E4 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.41
#AF87E4 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF87E4
7.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF87E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF87E4 | 1.00 | 2.83 | 7.41 | 7.41 |
| #FFFFFF | 2.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7099E7
Deuteranopia (green-blind)
#7899E2
Tritanopia (blue-blind)
#A696AB
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #af87e4; /* rgb */ color: rgb(175, 135, 228); /* oklch */ color: oklch(69.8% 0.138 302.8);
Tailwind
colors: {
custom: {
50: '#c8aaed',
500: '#af87e4',
950: '#000000',
},
}SCSS
$custom: #af87e4; $custom-light: #c8aaed; $custom-dark: #000000;
JSON
{
"hex": "#af87e4",
"rgb": {
"r": 175,
"g": 135,
"b": 228
},
"hsl": {
"h": 265.806,
"s": 63.265,
"l": 71.176
},
"oklch": {
"l": 0.69781,
"c": 0.1381,
"h": 302.8
},
"luminance": 0.32043
}Semantic roles & 50–950 ramp
primary
#AF87E4
secondary
#E5F0D7
accent
#CB1A7F
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84