#AF87BF#AF87BF

#AF87BF is a light, moderate purple. Relative luminance 0.302; OKLCH L 68.1% C 0.092 H 316.1°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#AF87BF
RGBrgb(175, 135, 191)
HSLhsl(283, 30%, 64%)
HSVhsv(283, 29%, 75%)
CMYKcmyk(8.4%, 29.3%, 0%, 25.1%)
CIE-LABlab(61.83, 25.44, -23.36)
CIE-LCHlch(61.83, 34.54, 317.43°)
OKLaboklab(68.1% 0.0662 -0.0637)
OKLCHoklch(68.1% 0.092 316.1)
XYZxyz(35.7457, 30.2042, 53.2270)
Luminance0.3020 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87BF #97BF87
analogous
#9387BF #AF87BF #BF87B3
triadic
#AF87BF #BFAF87 #87BFAF
tetradic
#AF87BF #BF9387 #97BF87 #87B3BF
square
#AF87BF #BF9387 #97BF87 #87B3BF
split-complementary
#AF87BF #B3BF87 #87BF93
monochromatic
#734785 #945FAA #AF87BF #CAAFD4 #E4D7EA

Accessibility & contrast

On white

2.98
#AF87BF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#AF87BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87BF
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87BF#FFFFFF#000000##000000
##AF87BF1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F93C1
Deuteranopia (green-blind)
#8897BD
Tritanopia (blue-blind)
#AF8E9B
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af87bf;
/* rgb */ color: rgb(175, 135, 191);
/* oklch */ color: oklch(68.1% 0.092 316.1);
Tailwind
colors: {
  custom: {
    50: '#c7aad2',
    500: '#af87bf',
    950: '#000000',
  },
}
SCSS
$custom: #af87bf;
$custom-light: #c7aad2;
$custom-dark: #000000;
JSON
{
  "hex": "#af87bf",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 191
  },
  "hsl": {
    "h": 282.857,
    "s": 30.435,
    "l": 63.922
  },
  "oklch": {
    "l": 0.68096,
    "c": 0.09188,
    "h": 316.1
  },
  "luminance": 0.30203
}

Semantic roles & 50–950 ramp

primary
#AF87BF
secondary
#CDDBC7
accent
#A93C5B
background
#FCFAFC
surface
#F8F4F9
border
#D1CED2
text
#131014
muted
#827F82

Preview Lab

Preview with #AF87BF

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

Preview Lab → · Contrast checker → · Palette generator →

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