#AF87CB#AF87CB

#AF87CB is a light, moderate violet. Relative luminance 0.308; OKLCH L 68.6% C 0.107 H 310.7°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#AF87CB
RGBrgb(175, 135, 203)
HSLhsl(275, 40%, 66%)
HSVhsv(275, 33%, 80%)
CMYKcmyk(13.8%, 33.5%, 0%, 20.4%)
CIE-LABlab(62.30, 27.98, -29.40)
CIE-LCHlch(62.30, 40.58, 313.59°)
OKLaboklab(68.61% 0.0694 -0.0808)
OKLCHoklch(68.61% 0.107 310.7)
XYZxyz(37.1208, 30.7542, 60.4690)
Luminance0.3075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87CB #A3CB87
analogous
#8D87CB #AF87CB #CB87C5
triadic
#AF87CB #CBAF87 #87CBAF
tetradic
#AF87CB #CB8D87 #A3CB87 #87C5CB
square
#AF87CB #CB8D87 #A3CB87 #87C5CB
split-complementary
#AF87CB #C5CB87 #87CB8D
monochromatic
#734196 #935CB8 #AF87CB #CBB2DE #E8DCF0

Accessibility & contrast

On white

2.94
#AF87CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#AF87CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87CB
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87CB#FFFFFF#000000##000000
##AF87CB1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B95CE
Deuteranopia (green-blind)
#8497C9
Tritanopia (blue-blind)
#AC90A0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af87cb;
/* rgb */ color: rgb(175, 135, 203);
/* oklch */ color: oklch(68.6% 0.107 310.7);
Tailwind
colors: {
  custom: {
    50: '#c7aadb',
    500: '#af87cb',
    950: '#000000',
  },
}
SCSS
$custom: #af87cb;
$custom-light: #c7aadb;
$custom-dark: #000000;
JSON
{
  "hex": "#af87cb",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 275.294,
    "s": 39.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.68609,
    "c": 0.10653,
    "h": 310.7
  },
  "luminance": 0.30754
}

Semantic roles & 50–950 ramp

primary
#AF87CB
secondary
#D5E2CC
accent
#B33367
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AF87CB

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

Preview Lab → · Contrast checker → · Palette generator →

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