#AF89C7#AF89C7
#AF89C7 is a light, moderate violet. Relative luminance 0.311; OKLCH L 68.8% C 0.098 H 311.8°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #AF89C7 |
|---|---|
| RGB | rgb(175, 137, 199) |
| HSL | hsl(277, 36%, 66%) |
| HSV | hsv(277, 31%, 78%) |
| CMYK | cmyk(12.1%, 31.2%, 0%, 22%) |
| CIE-LAB | lab(62.62, 25.99, -26.66) |
| CIE-LCH | lch(62.62, 37.23, 314.28°) |
| OKLab | oklab(68.8% 0.0654 -0.073) |
| OKLCH | oklch(68.8% 0.098 311.8) |
| XYZ | xyz(36.9319, 31.1293, 58.0847) |
| Luminance | 0.3113 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pale Purple
#B790D4
ΔE00 2.75
Wisteria
#A87DC2
ΔE00 3.66
Heather
#A484AC
ΔE00 6.07
Lavender
#B39DDB
ΔE00 6.31
Soft Purple
#A66FB5
ΔE00 7.77
Dusty Lavender
#AC86A8
ΔE00 7.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF89C7 #A1C789
analogous
#9089C7 #AF89C7 #C789C0
triadic
#AF89C7 #C7AF89 #89C7AF
tetradic
#AF89C7 #C79089 #A1C789 #89C0C7
square
#AF89C7 #C79089 #A1C789 #89C0C7
split-complementary
#AF89C7 #C0C789 #89C790
monochromatic
#734591 #935FB3 #AF89C7 #CBB3DB #E7DCEE
Accessibility & contrast
On white
2.91
#AF89C7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.23
#AF89C7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF89C7
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF89C7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF89C7 | 1.00 | 2.91 | 7.23 | 7.23 |
| #FFFFFF | 2.91 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7F95C9
Deuteranopia (green-blind)
#8798C5
Tritanopia (blue-blind)
#AD919F
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #af89c7; /* rgb */ color: rgb(175, 137, 199); /* oklch */ color: oklch(68.8% 0.098 311.8);
Tailwind
colors: {
custom: {
50: '#c7abd8',
500: '#af89c7',
950: '#000000',
},
}SCSS
$custom: #af89c7; $custom-light: #c7abd8; $custom-dark: #000000;
JSON
{
"hex": "#af89c7",
"rgb": {
"r": 175,
"g": 137,
"b": 199
},
"hsl": {
"h": 276.774,
"s": 35.632,
"l": 65.882
},
"oklch": {
"l": 0.68798,
"c": 0.09804,
"h": 311.8
},
"luminance": 0.31129
}Semantic roles & 50–950 ramp
primary
#AF89C7
secondary
#D4E0CC
accent
#AE3765
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#131014
muted
#827F83