#AF97CA#AF97CA

#AF97CA is a light, moderate violet. Relative luminance 0.355; OKLCH L 71.5% C 0.077 H 306.0°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#AF97CA
RGBrgb(175, 151, 202)
HSLhsl(268, 32%, 69%)
HSVhsv(268, 25%, 79%)
CMYKcmyk(13.4%, 25.2%, 0%, 20.8%)
CIE-LABlab(66.15, 18.75, -22.92)
CIE-LCHlch(66.15, 29.62, 309.28°)
OKLaboklab(71.54% 0.0454 -0.0626)
OKLCHoklch(71.54% 0.077 306)
XYZxyz(39.4045, 35.5116, 60.6442)
Luminance0.3551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97CA #B2CA97
analogous
#9799CA #AF97CA #C997CA
triadic
#AF97CA #CAAF97 #97CAAF
tetradic
#AF97CA #CA9799 #B2CA97 #97CAC9
square
#AF97CA #CA9799 #B2CA97 #97CAC9
split-complementary
#AF97CA #CAC997 #99CA97
monochromatic
#714E99 #906EB5 #AF97CA #CEC0DF #EDE8F3

Accessibility & contrast

On white

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

On black

8.10
#AF97CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97CA
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97CA#FFFFFF#000000##000000
##AF97CA1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af97ca;
/* rgb */ color: rgb(175, 151, 202);
/* oklch */ color: oklch(71.5% 0.077 306.0);
Tailwind
colors: {
  custom: {
    50: '#c7b5da',
    500: '#af97ca',
    950: '#000000',
  },
}
SCSS
$custom: #af97ca;
$custom-light: #c7b5da;
$custom-dark: #000000;
JSON
{
  "hex": "#af97ca",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 202
  },
  "hsl": {
    "h": 268.235,
    "s": 32.484,
    "l": 69.216
  },
  "oklch": {
    "l": 0.71541,
    "c": 0.07732,
    "h": 306
  },
  "luminance": 0.35511
}

Semantic roles & 50–950 ramp

primary
#AF97CA
secondary
#DFE6D7
accent
#AB3A76
background
#FCFBFD
surface
#F8F6FA
border
#D1D0D3
text
#131114
muted
#828083

Preview Lab

Preview with #AF97CA

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

Preview Lab → · Contrast checker → · Palette generator →

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