#AF81BC#AF81BC

#AF81BC is a light, moderate purple. Relative luminance 0.284; OKLCH L 66.9% C 0.099 H 318.7°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#AF81BC
RGBrgb(175, 129, 188)
HSLhsl(287, 31%, 62%)
HSVhsv(287, 31%, 74%)
CMYKcmyk(6.9%, 31.4%, 0%, 26.3%)
CIE-LABlab(60.29, 28.20, -24.03)
CIE-LCHlch(60.29, 37.04, 319.56°)
OKLaboklab(66.88% 0.0745 -0.0655)
OKLCHoklch(66.88% 0.099 318.7)
XYZxyz(34.6053, 28.4461, 51.2349)
Luminance0.2844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81BC #8EBC81
analogous
#9281BC #AF81BC #BC81AB
triadic
#AF81BC #BCAF81 #81BCAF
tetradic
#AF81BC #BC9281 #8EBC81 #81ABBC
square
#AF81BC #BC9281 #8EBC81 #81ABBC
split-complementary
#AF81BC #ABBC81 #81BC92
monochromatic
#72447F #9659A7 #AF81BC #C8A9D1 #E2D1E6

Accessibility & contrast

On white

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

On black

6.69
#AF81BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF81BC
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81BC#FFFFFF#000000##000000
##AF81BC1.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8EBE
Deuteranopia (green-blind)
#8493BA
Tritanopia (blue-blind)
#B08896
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af81bc;
/* rgb */ color: rgb(175, 129, 188);
/* oklch */ color: oklch(66.9% 0.099 318.7);
Tailwind
colors: {
  custom: {
    50: '#c7a6d0',
    500: '#af81bc',
    950: '#000000',
  },
}
SCSS
$custom: #af81bc;
$custom-light: #c7a6d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af81bc",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 188
  },
  "hsl": {
    "h": 286.78,
    "s": 30.57,
    "l": 62.157
  },
  "oklch": {
    "l": 0.66883,
    "c": 0.09923,
    "h": 318.7
  },
  "luminance": 0.28445
}

Semantic roles & 50–950 ramp

primary
#AF81BC
secondary
#C6D7C2
accent
#A93C54
background
#FCFAFC
surface
#F8F4F9
border
#D1CED2
text
#130F14
muted
#827F82

Preview Lab

Preview with #AF81BC

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

Preview Lab → · Contrast checker → · Palette generator →

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