#AF97DD#AF97DD

#AF97DD is a light, moderate violet. Relative luminance 0.365; OKLCH L 72.3% C 0.103 H 299.6°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#AF97DD
RGBrgb(175, 151, 221)
HSLhsl(261, 51%, 73%)
HSVhsv(261, 32%, 87%)
CMYKcmyk(20.8%, 31.7%, 0%, 13.3%)
CIE-LABlab(66.88, 22.99, -32.34)
CIE-LCHlch(66.88, 39.68, 305.41°)
OKLaboklab(72.34% 0.0507 -0.0893)
OKLCHoklch(72.34% 0.103 299.6)
XYZxyz(41.7941, 36.4675, 73.2297)
Luminance0.3647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97DD #C5DD97
analogous
#97A2DD #AF97DD #D297DD
triadic
#AF97DD #DDAF97 #97DDAF
tetradic
#AF97DD #DD97A2 #C5DD97 #97DDD2
square
#AF97DD #DD97A2 #C5DD97 #97DDD2
split-complementary
#AF97DD #DDD297 #A2DD97
monochromatic
#693DBC #8C69CE #AF97DD #D2C5EC #EDE8F7

Accessibility & contrast

On white

2.53
#AF97DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#AF97DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97DD
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97DD#FFFFFF#000000##000000
##AF97DD1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A3E0
Deuteranopia (green-blind)
#8BA2DB
Tritanopia (blue-blind)
#A7A2B0
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #af97dd;
/* rgb */ color: rgb(175, 151, 221);
/* oklch */ color: oklch(72.3% 0.103 299.6);
Tailwind
colors: {
  custom: {
    50: '#c8b5e7',
    500: '#af97dd',
    950: '#000000',
  },
}
SCSS
$custom: #af97dd;
$custom-light: #c8b5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af97dd",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 221
  },
  "hsl": {
    "h": 260.571,
    "s": 50.725,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72342,
    "c": 0.10269,
    "h": 299.6
  },
  "luminance": 0.36468
}

Semantic roles & 50–950 ramp

primary
#AF97DD
secondary
#E8EFDC
accent
#BE278A
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF97DD

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

Preview Lab → · Contrast checker → · Palette generator →

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