#AF97CC#AF97CC

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

Color values

HEX#AF97CC
RGBrgb(175, 151, 204)
HSLhsl(267, 34%, 70%)
HSVhsv(267, 26%, 80%)
CMYKcmyk(14.2%, 26%, 0%, 20%)
CIE-LABlab(66.22, 19.19, -23.92)
CIE-LCHlch(66.22, 30.67, 308.73°)
OKLaboklab(71.62% 0.046 -0.0654)
OKLCHoklch(71.62% 0.08 305.1)
XYZxyz(39.6428, 35.6069, 61.8994)
Luminance0.3561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97CC #B4CC97
analogous
#979ACC #AF97CC #CA97CC
triadic
#AF97CC #CCAF97 #97CCAF
tetradic
#AF97CC #CC979A #B4CC97 #97CCCA
square
#AF97CC #CC979A #B4CC97 #97CCCA
split-complementary
#AF97CC #CCCA97 #9ACC97
monochromatic
#714D9C #8F6EB8 #AF97CC #CFC0E0 #EEE9F4

Accessibility & contrast

On white

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

On black

8.12
#AF97CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97CC
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97CC#FFFFFF#000000##000000
##AF97CC1.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA0CE
Deuteranopia (green-blind)
#92A1CA
Tritanopia (blue-blind)
#AB9EAA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #af97cc;
/* rgb */ color: rgb(175, 151, 204);
/* oklch */ color: oklch(71.6% 0.080 305.1);
Tailwind
colors: {
  custom: {
    50: '#c7b5db',
    500: '#af97cc',
    950: '#000000',
  },
}
SCSS
$custom: #af97cc;
$custom-light: #c7b5db;
$custom-dark: #000000;
JSON
{
  "hex": "#af97cc",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 204
  },
  "hsl": {
    "h": 267.17,
    "s": 34.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71621,
    "c": 0.07995,
    "h": 305.1
  },
  "luminance": 0.35607
}

Semantic roles & 50–950 ramp

primary
#AF97CC
secondary
#E0E7D8
accent
#AD3878
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083

Preview Lab

Preview with #AF97CC

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

Preview Lab → · Contrast checker → · Palette generator →

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