#AF97BD#AF97BD

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

Color values

HEX#AF97BD
RGBrgb(175, 151, 189)
HSLhsl(278, 22%, 67%)
HSVhsv(278, 20%, 74%)
CMYKcmyk(7.4%, 20.1%, 0%, 25.9%)
CIE-LABlab(65.69, 16.01, -16.36)
CIE-LCHlch(65.69, 22.89, 314.38°)
OKLaboklab(71.04% 0.0413 -0.0442)
OKLCHoklch(71.04% 0.061 313)
XYZxyz(37.9296, 34.9217, 52.8766)
Luminance0.3492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97BD #A5BD97
analogous
#9C97BD #AF97BD #BD97B8
triadic
#AF97BD #BDAF97 #97BDAF
tetradic
#AF97BD #BD9C97 #A5BD97 #97B8BD
square
#AF97BD #BD9C97 #A5BD97 #97B8BD
split-complementary
#AF97BD #B8BD97 #97BD9C
monochromatic
#735485 #9272A5 #AF97BD #CCBCD5 #E9E2ED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF97BD#FFFFFF#000000##000000
##AF97BD1.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)
#929EBF
Deuteranopia (green-blind)
#97A0BC
Tritanopia (blue-blind)
#AE9BA4
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #af97bd;
/* rgb */ color: rgb(175, 151, 189);
/* oklch */ color: oklch(71.0% 0.061 313.0);
Tailwind
colors: {
  custom: {
    50: '#c7b5d1',
    500: '#af97bd',
    950: '#000000',
  },
}
SCSS
$custom: #af97bd;
$custom-light: #c7b5d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af97bd",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 189
  },
  "hsl": {
    "h": 277.895,
    "s": 22.353,
    "l": 66.667
  },
  "oklch": {
    "l": 0.71036,
    "c": 0.06052,
    "h": 313
  },
  "luminance": 0.34921
}

Semantic roles & 50–950 ramp

primary
#AF97BD
secondary
#D6DED2
accent
#A14567
background
#FCFBFC
surface
#F8F6F9
border
#D1D0D2
text
#131114
muted
#828082

Preview Lab

Preview with #AF97BD

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

Preview Lab → · Contrast checker → · Palette generator →

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