#AF97CB#AF97CB

#AF97CB is a light, moderate violet. Relative luminance 0.356; OKLCH L 71.6% C 0.079 H 305.5°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#AF97CB
RGBrgb(175, 151, 203)
HSLhsl(268, 33%, 69%)
HSVhsv(268, 26%, 80%)
CMYKcmyk(13.8%, 25.6%, 0%, 20.4%)
CIE-LABlab(66.18, 18.97, -23.42)
CIE-LCHlch(66.18, 30.14, 309.00°)
OKLaboklab(71.58% 0.0457 -0.064)
OKLCHoklch(71.58% 0.079 305.5)
XYZxyz(39.5232, 35.5591, 61.2698)
Luminance0.3556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97CB #B3CB97
analogous
#9799CB #AF97CB #C997CB
triadic
#AF97CB #CBAF97 #97CBAF
tetradic
#AF97CB #CB9799 #B3CB97 #97CBC9
square
#AF97CB #CB9799 #B3CB97 #97CBC9
split-complementary
#AF97CB #CBC997 #99CB97
monochromatic
#714D9A #906EB7 #AF97CB #CEC0DF #EEE9F4

Accessibility & contrast

On white

2.59
#AF97CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#AF97CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97CB
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97CB#FFFFFF#000000##000000
##AF97CB1.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA0CD
Deuteranopia (green-blind)
#92A1C9
Tritanopia (blue-blind)
#AB9EA9
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #af97cb;
/* rgb */ color: rgb(175, 151, 203);
/* oklch */ color: oklch(71.6% 0.079 305.5);
Tailwind
colors: {
  custom: {
    50: '#c7b5db',
    500: '#af97cb',
    950: '#000000',
  },
}
SCSS
$custom: #af97cb;
$custom-light: #c7b5db;
$custom-dark: #000000;
JSON
{
  "hex": "#af97cb",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 203
  },
  "hsl": {
    "h": 267.692,
    "s": 33.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.71581,
    "c": 0.07864,
    "h": 305.5
  },
  "luminance": 0.35559
}

Semantic roles & 50–950 ramp

primary
#AF97CB
secondary
#DFE6D7
accent
#AC3977
background
#FCFBFD
surface
#F8F6FA
border
#D1D0D3
text
#131115
muted
#828083

Preview Lab

Preview with #AF97CB

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

Preview Lab → · Contrast checker → · Palette generator →

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