#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
RGBrgb(175, 151, 191)
HSLhsl(276, 24%, 67%)
HSVhsv(276, 21%, 75%)
CMYKcmyk(8.4%, 20.9%, 0%, 25.1%)
CIE-LABlab(65.76, 16.43, -17.38)
CIE-LCHlch(65.76, 23.91, 313.38°)
OKLaboklab(71.11% 0.0419 -0.0471)
OKLCHoklch(71.11% 0.063 311.7)
XYZxyz(38.1482, 35.0091, 54.0279)
Luminance0.3501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

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
##AF97BF1.002.628.008.00
#FFFFFF2.621.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.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

Preview Lab

Preview with #AF97BF

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AF97BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva