#AF81BB#AF81BB

#AF81BB is a light, moderate purple. Relative luminance 0.284; OKLCH L 66.8% C 0.098 H 319.2°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#AF81BB
RGBrgb(175, 129, 187)
HSLhsl(288, 30%, 62%)
HSVhsv(288, 31%, 73%)
CMYKcmyk(6.4%, 31%, 0%, 26.7%)
CIE-LABlab(60.25, 27.99, -23.52)
CIE-LCHlch(60.25, 36.56, 319.96°)
OKLaboklab(66.84% 0.0742 -0.0641)
OKLCHoklch(66.84% 0.098 319.2)
XYZxyz(34.4979, 28.4032, 50.6691)
Luminance0.2840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81BB #8DBB81
analogous
#9281BB #AF81BB #BB81AA
triadic
#AF81BB #BBAF81 #81BBAF
tetradic
#AF81BB #BB9281 #8DBB81 #81AABB
square
#AF81BB #BB9281 #8DBB81 #81AABB
split-complementary
#AF81BB #AABB81 #81BB92
monochromatic
#72447E #9659A5 #AF81BB #C8A9D0 #E1D0E6

Accessibility & contrast

On white

3.14
#AF81BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#AF81BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF81BB
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81BB#FFFFFF#000000##000000
##AF81BB1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8EBD
Deuteranopia (green-blind)
#8593B9
Tritanopia (blue-blind)
#B08796
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af81bb;
/* rgb */ color: rgb(175, 129, 187);
/* oklch */ color: oklch(66.8% 0.098 319.2);
Tailwind
colors: {
  custom: {
    50: '#c7a6cf',
    500: '#af81bb',
    950: '#000000',
  },
}
SCSS
$custom: #af81bb;
$custom-light: #c7a6cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af81bb",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 187
  },
  "hsl": {
    "h": 287.586,
    "s": 29.897,
    "l": 61.961
  },
  "oklch": {
    "l": 0.66841,
    "c": 0.09808,
    "h": 319.2
  },
  "luminance": 0.28402
}

Semantic roles & 50–950 ramp

primary
#AF81BB
secondary
#C6D7C1
accent
#A93D53
background
#FCFAFC
surface
#F8F4F9
border
#D1CED2
text
#130F14
muted
#827F82

Preview Lab

Preview with #AF81BB

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

Preview Lab → · Contrast checker → · Palette generator →

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