#AF97BC#AF97BC

#AF97BC is a light, muted violet. Relative luminance 0.349; OKLCH L 71.0% C 0.059 H 313.7°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#AF97BC
RGBrgb(175, 151, 188)
HSLhsl(279, 22%, 66%)
HSVhsv(279, 20%, 74%)
CMYKcmyk(6.9%, 19.7%, 0%, 26.3%)
CIE-LABlab(65.65, 15.81, -15.86)
CIE-LCHlch(65.65, 22.39, 314.91°)
OKLaboklab(71% 0.041 -0.0428)
OKLCHoklch(71% 0.059 313.7)
XYZxyz(37.8214, 34.8784, 52.3070)
Luminance0.3488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97BC #A4BC97
analogous
#9D97BC #AF97BC #BC97B7
triadic
#AF97BC #BCAF97 #97BCAF
tetradic
#AF97BC #BC9D97 #A4BC97 #97B7BC
square
#AF97BC #BC9D97 #A4BC97 #97B7BC
split-complementary
#AF97BC #B7BC97 #97BC9D
monochromatic
#735584 #9272A4 #AF97BC #CCBCD4 #E8E1EC

Accessibility & contrast

On white

2.63
#AF97BC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#AF97BC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97BC
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97BC#FFFFFF#000000##000000
##AF97BC1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#929EBE
Deuteranopia (green-blind)
#97A0BB
Tritanopia (blue-blind)
#AE9BA4
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af97bc;
/* rgb */ color: rgb(175, 151, 188);
/* oklch */ color: oklch(71.0% 0.059 313.7);
Tailwind
colors: {
  custom: {
    50: '#c7b5d0',
    500: '#af97bc',
    950: '#000000',
  },
}
SCSS
$custom: #af97bc;
$custom-light: #c7b5d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af97bc",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 188
  },
  "hsl": {
    "h": 278.919,
    "s": 21.637,
    "l": 66.471
  },
  "oklch": {
    "l": 0.70999,
    "c": 0.05926,
    "h": 313.7
  },
  "luminance": 0.34878
}

Semantic roles & 50–950 ramp

primary
#AF97BC
secondary
#D6DDD1
accent
#A04565
background
#FCFBFC
surface
#F8F6F9
border
#D1D0D2
text
#131114
muted
#828082

Preview Lab

Preview with #AF97BC

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

Preview Lab → · Contrast checker → · Palette generator →

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