#CA87C8#CA87C8

#CA87C8 is a light, moderate purple. Relative luminance 0.341; OKLCH L 71.3% C 0.118 H 327.8°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#CA87C8
RGBrgb(202, 135, 200)
HSLhsl(302, 39%, 66%)
HSVhsv(302, 33%, 79%)
CMYKcmyk(0%, 33.2%, 1%, 20.8%)
CIE-LABlab(65.01, 35.99, -23.31)
CIE-LCHlch(65.01, 42.88, 327.07°)
OKLaboklab(71.27% 0.1001 -0.0632)
OKLCHoklch(71.27% 0.118 327.8)
XYZxyz(43.4456, 34.0563, 58.9174)
Luminance0.3406 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87C8 #87CA89
analogous
#AA87CA #CA87C8 #CA87A6
triadic
#CA87C8 #C8CA87 #87C8CA
tetradic
#CA87C8 #CAAA87 #87CA89 #87A6CA
square
#CA87C8 #CAAA87 #87CA89 #87A6CA
split-complementary
#CA87C8 #A6CA87 #87CAAA
monochromatic
#954292 #B75DB5 #CA87C8 #DDB1DB #EFDCEF

Accessibility & contrast

On white

2.69
#CA87C8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#CA87C8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87C8
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87C8#FFFFFF#000000##000000
##CA87C81.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8398CA
Deuteranopia (green-blind)
#93A1C6
Tritanopia (blue-blind)
#CE8D9F
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ca87c8;
/* rgb */ color: rgb(202, 135, 200);
/* oklch */ color: oklch(71.3% 0.118 327.8);
Tailwind
colors: {
  custom: {
    50: '#dbabd8',
    500: '#ca87c8',
    950: '#000000',
  },
}
SCSS
$custom: #ca87c8;
$custom-light: #dbabd8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87c8",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 200
  },
  "hsl": {
    "h": 301.791,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.71267,
    "c": 0.11837,
    "h": 327.8
  },
  "luminance": 0.34055
}

Semantic roles & 50–950 ramp

primary
#CA87C8
secondary
#CBE1CC
accent
#B23834
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#151014
muted
#837F83

Preview Lab

Preview with #CA87C8

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

Preview Lab → · Contrast checker → · Palette generator →

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