#AF97BF#AF97BF
#AF97BF is a light, moderate violet. Relative luminance 0.350; OKLCH L 71.1% C 0.063 H 311.7°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).
Color values
| HEX | #AF97BF |
|---|---|
| RGB | rgb(175, 151, 191) |
| HSL | hsl(276, 24%, 67%) |
| HSV | hsv(276, 21%, 75%) |
| CMYK | cmyk(8.4%, 20.9%, 0%, 25.1%) |
| CIE-LAB | lab(65.76, 16.43, -17.38) |
| CIE-LCH | lch(65.76, 23.91, 313.38°) |
| OKLab | oklab(71.11% 0.0419 -0.0471) |
| OKLCH | oklch(71.11% 0.063 311.7) |
| XYZ | xyz(38.1482, 35.0091, 54.0279) |
| Luminance | 0.3501 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lilac
#C8A2C8
ΔE00 5.70
Heather
#A484AC
ΔE00 5.93
Lavender
#B39DDB
ΔE00 6.36
Dusty Lavender
#AC86A8
ΔE00 6.44
Pale Purple
#B790D4
ΔE00 6.70
Wisteria
#A87DC2
ΔE00 9.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF97BF #A7BF97
analogous
#9B97BF #AF97BF #BF97BB
triadic
#AF97BF #BFAF97 #97BFAF
tetradic
#AF97BF #BF9B97 #A7BF97 #97BBBF
square
#AF97BF #BF9B97 #A7BF97 #97BBBF
split-complementary
#AF97BF #BBBF97 #97BF9B
monochromatic
#735488 #9271A8 #AF97BF #CCBDD6 #E9E3EE
Accessibility & contrast
On white
2.62
#AF97BF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.00
#AF97BF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF97BF
8.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF97BF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF97BF | 1.00 | 2.62 | 8.00 | 8.00 |
| #FFFFFF | 2.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#919EC1
Deuteranopia (green-blind)
#96A0BE
Tritanopia (blue-blind)
#AE9CA5
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #af97bf; /* rgb */ color: rgb(175, 151, 191); /* oklch */ color: oklch(71.1% 0.063 311.7);
Tailwind
colors: {
custom: {
50: '#c7b5d2',
500: '#af97bf',
950: '#000000',
},
}SCSS
$custom: #af97bf; $custom-light: #c7b5d2; $custom-dark: #000000;
JSON
{
"hex": "#af97bf",
"rgb": {
"r": 175,
"g": 151,
"b": 191
},
"hsl": {
"h": 276,
"s": 23.81,
"l": 67.059
},
"oklch": {
"l": 0.71112,
"c": 0.06304,
"h": 311.7
},
"luminance": 0.35009
}Semantic roles & 50–950 ramp
primary
#AF97BF
secondary
#D8DFD3
accent
#A24369
background
#FCFBFC
surface
#F8F6F9
border
#D1D0D2
text
#131114
muted
#828082