#AF87BB#AF87BB

#AF87BB is a light, moderate purple. Relative luminance 0.300; OKLCH L 67.9% C 0.087 H 318.3°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#AF87BB
RGBrgb(175, 135, 187)
HSLhsl(286, 28%, 63%)
HSVhsv(286, 28%, 73%)
CMYKcmyk(6.4%, 27.8%, 0%, 26.7%)
CIE-LABlab(61.68, 24.61, -21.33)
CIE-LCHlch(61.68, 32.57, 319.09°)
OKLaboklab(67.93% 0.0651 -0.058)
OKLCHoklch(67.93% 0.087 318.3)
XYZxyz(35.3115, 30.0305, 50.9404)
Luminance0.3003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87BB #93BB87
analogous
#9587BB #AF87BB #BB87AD
triadic
#AF87BB #BBAF87 #87BBAF
tetradic
#AF87BB #BB9587 #93BB87 #87ADBB
square
#AF87BB #BB9587 #93BB87 #87ADBB
split-complementary
#AF87BB #ADBB87 #87BB95
monochromatic
#73487F #9560A5 #AF87BB #C9AED1 #E3D5E7

Accessibility & contrast

On white

3.00
#AF87BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.01
#AF87BB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87BB
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87BB#FFFFFF#000000##000000
##AF87BB1.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8192BD
Deuteranopia (green-blind)
#8A96B9
Tritanopia (blue-blind)
#AF8D99
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af87bb;
/* rgb */ color: rgb(175, 135, 187);
/* oklch */ color: oklch(67.9% 0.087 318.3);
Tailwind
colors: {
  custom: {
    50: '#c7aacf',
    500: '#af87bb',
    950: '#000000',
  },
}
SCSS
$custom: #af87bb;
$custom-light: #c7aacf;
$custom-dark: #000000;
JSON
{
  "hex": "#af87bb",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 187
  },
  "hsl": {
    "h": 286.154,
    "s": 27.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.67932,
    "c": 0.08715,
    "h": 318.3
  },
  "luminance": 0.3003
}

Semantic roles & 50–950 ramp

primary
#AF87BB
secondary
#CAD8C6
accent
#A63F57
background
#FCFAFC
surface
#F8F4F9
border
#D1CED2
text
#131013
muted
#827F82

Preview Lab

Preview with #AF87BB

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

Preview Lab → · Contrast checker → · Palette generator →

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