#AF87BC#AF87BC

#AF87BC is a light, moderate purple. Relative luminance 0.301; OKLCH L 68.0% C 0.088 H 317.7°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#AF87BC
RGBrgb(175, 135, 188)
HSLhsl(285, 28%, 63%)
HSVhsv(285, 28%, 74%)
CMYKcmyk(6.9%, 28.2%, 0%, 26.3%)
CIE-LABlab(61.72, 24.82, -21.84)
CIE-LCHlch(61.72, 33.06, 318.65°)
OKLaboklab(67.97% 0.0654 -0.0594)
OKLCHoklch(67.97% 0.088 317.7)
XYZxyz(35.4190, 30.0735, 51.5061)
Luminance0.3007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87BC #94BC87
analogous
#9487BC #AF87BC #BC87AE
triadic
#AF87BC #BCAF87 #87BCAF
tetradic
#AF87BC #BC9487 #94BC87 #87AEBC
square
#AF87BC #BC9487 #94BC87 #87AEBC
split-complementary
#AF87BC #AEBC87 #87BC94
monochromatic
#734881 #9560A6 #AF87BC #C9AED2 #E3D6E8

Accessibility & contrast

On white

2.99
#AF87BC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF87BC#FFFFFF#000000##000000
##AF87BC1.002.997.017.01
#FFFFFF2.991.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8092BE
Deuteranopia (green-blind)
#8996BA
Tritanopia (blue-blind)
#AF8D9A
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af87bc;
/* rgb */ color: rgb(175, 135, 188);
/* oklch */ color: oklch(68.0% 0.088 317.7);
Tailwind
colors: {
  custom: {
    50: '#c7aad0',
    500: '#af87bc',
    950: '#000000',
  },
}
SCSS
$custom: #af87bc;
$custom-light: #c7aad0;
$custom-dark: #000000;
JSON
{
  "hex": "#af87bc",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 188
  },
  "hsl": {
    "h": 285.283,
    "s": 28.342,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67973,
    "c": 0.08833,
    "h": 317.7
  },
  "luminance": 0.30073
}

Semantic roles & 50–950 ramp

primary
#AF87BC
secondary
#CBD9C6
accent
#A73F58
background
#FCFAFC
surface
#F8F4F9
border
#D1CED2
text
#131014
muted
#827F82

Preview Lab

Preview with #AF87BC

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

Preview Lab → · Contrast checker → · Palette generator →

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