#AF7BF2#AF7BF2
#AF7BF2 is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.5% C 0.175 H 302.2°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).
Color values
| HEX | #AF7BF2 |
|---|---|
| RGB | rgb(175, 123, 242) |
| HSL | hsl(266, 82%, 72%) |
| HSV | hsv(266, 49%, 95%) |
| CMYK | cmyk(27.7%, 49.2%, 0%, 5.1%) |
| CIE-LAB | lab(61.39, 43.57, -52.57) |
| CIE-LCH | lch(61.39, 68.28, 309.65°) |
| OKLab | oklab(68.51% 0.093 -0.1477) |
| OKLCH | oklch(68.51% 0.175 302.2) |
| XYZ | xyz(40.7856, 29.6906, 87.5694) |
| Luminance | 0.2969 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.03
Light Purple
#BF77F6
ΔE00 3.08
Easter Purple
#C071FE
ΔE00 3.83
Liliac
#C48EFD
ΔE00 5.81
Mediumpurple
#9370DB
ΔE00 6.33
Bright Lavender
#C760FF
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF7BF2 #BEF27B
analogous
#7B83F2 #AF7BF2 #EA7BF2
triadic
#AF7BF2 #F2AF7B #7BF2AF
tetradic
#AF7BF2 #F27B83 #BEF27B #7BF2EA
square
#AF7BF2 #F27B83 #BEF27B #7BF2EA
split-complementary
#AF7BF2 #F2EA7B #83F27B
monochromatic
#6D16DD #8D43ED #AF7BF2 #D1B3F7 #EEE3FC
Accessibility & contrast
On white
3.03
#AF7BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.94
#AF7BF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF7BF2
6.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF7BF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF7BF2 | 1.00 | 3.03 | 6.94 | 6.94 |
| #FFFFFF | 3.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5593F6
Deuteranopia (green-blind)
#6394EF
Tritanopia (blue-blind)
#A391AB
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #af7bf2; /* rgb */ color: rgb(175, 123, 242); /* oklch */ color: oklch(68.5% 0.175 302.2);
Tailwind
colors: {
custom: {
50: '#caa2f7',
500: '#af7bf2',
950: '#000000',
},
}SCSS
$custom: #af7bf2; $custom-light: #caa2f7; $custom-dark: #000000;
JSON
{
"hex": "#af7bf2",
"rgb": {
"r": 175,
"g": 123,
"b": 242
},
"hsl": {
"h": 266.218,
"s": 82.069,
"l": 71.569
},
"oklch": {
"l": 0.6851,
"c": 0.17457,
"h": 302.2
},
"luminance": 0.29691
}Semantic roles & 50–950 ramp
primary
#AF7BF2
secondary
#E6F4D5
accent
#DE0780
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85