#AF71E2#AF71E2
#AF71E2 is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.0% C 0.171 H 307.7°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #AF71E2 |
|---|---|
| RGB | rgb(175, 113, 226) |
| HSL | hsl(273, 66%, 66%) |
| HSV | hsv(273, 50%, 89%) |
| CMYK | cmyk(22.6%, 50%, 0%, 11.4%) |
| CIE-LAB | lab(58.43, 45.28, -48.36) |
| CIE-LCH | lch(58.43, 66.25, 313.12°) |
| OKLab | oklab(66.04% 0.1047 -0.1354) |
| OKLCH | oklch(66.04% 0.171 307.7) |
| XYZ | xyz(37.3091, 26.4156, 75.0700) |
| Luminance | 0.2641 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.04
Light Purple
#BF77F6
ΔE00 3.91
Easter Purple
#C071FE
ΔE00 4.48
Mediumpurple
#9370DB
ΔE00 5.56
Bright Lavender
#C760FF
ΔE00 5.81
Bright Lilac
#C95EFB
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF71E2 #A4E271
analogous
#7771E2 #AF71E2 #E271DD
triadic
#AF71E2 #E2AF71 #71E2AF
tetradic
#AF71E2 #E27771 #A4E271 #71DDE2
square
#AF71E2 #E27771 #A4E271 #71DDE2
split-complementary
#AF71E2 #DDE271 #71E277
monochromatic
#7325B4 #923ED8 #AF71E2 #CCA4EC #E8D7F7
Accessibility & contrast
On white
3.34
#AF71E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.28
#AF71E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF71E2
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF71E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF71E2 | 1.00 | 3.34 | 6.28 | 6.28 |
| #FFFFFF | 3.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#518AE6
Deuteranopia (green-blind)
#648DDF
Tritanopia (blue-blind)
#A8849F
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #af71e2; /* rgb */ color: rgb(175, 113, 226); /* oklch */ color: oklch(66.0% 0.171 307.7);
Tailwind
colors: {
custom: {
50: '#c99beb',
500: '#af71e2',
950: '#000000',
},
}SCSS
$custom: #af71e2; $custom-light: #c99beb; $custom-dark: #000000;
JSON
{
"hex": "#af71e2",
"rgb": {
"r": 175,
"g": 113,
"b": 226
},
"hsl": {
"h": 272.92,
"s": 66.082,
"l": 66.471
},
"oklch": {
"l": 0.66043,
"c": 0.17118,
"h": 307.7
},
"luminance": 0.26415
}Semantic roles & 50–950 ramp
primary
#AF71E2
secondary
#D6EAC5
accent
#CE186A
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84