#AF97DB#AF97DB

#AF97DB is a light, moderate violet. Relative luminance 0.364; OKLCH L 72.3% C 0.100 H 300.1°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#AF97DB
RGBrgb(175, 151, 219)
HSLhsl(261, 49%, 73%)
HSVhsv(261, 31%, 86%)
CMYKcmyk(20.1%, 31.1%, 0%, 14.1%)
CIE-LABlab(66.80, 22.53, -31.36)
CIE-LCHlch(66.80, 38.62, 305.70°)
OKLaboklab(72.25% 0.0502 -0.0865)
OKLCHoklch(72.25% 0.1 300.1)
XYZxyz(41.5292, 36.3615, 71.8347)
Luminance0.3636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97DB #C3DB97
analogous
#97A1DB #AF97DB #D197DB
triadic
#AF97DB #DBAF97 #97DBAF
tetradic
#AF97DB #DB97A1 #C3DB97 #97DBD1
square
#AF97DB #DB97A1 #C3DB97 #97DBD1
split-complementary
#AF97DB #DBD197 #A1DB97
monochromatic
#6A40B8 #8C6ACB #AF97DB #D2C4EB #EEE8F7

Accessibility & contrast

On white

2.54
#AF97DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#AF97DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97DB
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97DB#FFFFFF#000000##000000
##AF97DB1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A2DE
Deuteranopia (green-blind)
#8CA2D9
Tritanopia (blue-blind)
#A7A2AF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #af97db;
/* rgb */ color: rgb(175, 151, 219);
/* oklch */ color: oklch(72.3% 0.100 300.1);
Tailwind
colors: {
  custom: {
    50: '#c8b5e6',
    500: '#af97db',
    950: '#000000',
  },
}
SCSS
$custom: #af97db;
$custom-light: #c8b5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af97db",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 261.176,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.72254,
    "c": 0.1,
    "h": 300.1
  },
  "luminance": 0.36362
}

Semantic roles & 50–950 ramp

primary
#AF97DB
secondary
#E8EEDD
accent
#BC2A88
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF97DB

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

Preview Lab → · Contrast checker → · Palette generator →

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