#CA87DD#CA87DD

#CA87DD is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.2% C 0.140 H 318.6°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#CA87DD
RGBrgb(202, 135, 221)
HSLhsl(287, 56%, 70%)
HSVhsv(287, 39%, 87%)
CMYKcmyk(8.6%, 38.9%, 0%, 13.3%)
CIE-LABlab(65.83, 40.04, -33.75)
CIE-LCHlch(65.83, 52.37, 319.87°)
OKLaboklab(72.16% 0.1051 -0.0928)
OKLCHoklch(72.16% 0.14 318.6)
XYZxyz(46.0705, 35.1063, 72.7419)
Luminance0.3510 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87DD #9ADD87
analogous
#9F87DD #CA87DD #DD87C5
triadic
#CA87DD #DDCA87 #87DDCA
tetradic
#CA87DD #DD9F87 #9ADD87 #87C5DD
square
#CA87DD #DD9F87 #9ADD87 #87C5DD
split-complementary
#CA87DD #C5DD87 #87DD9F
monochromatic
#9934B6 #B557CF #CA87DD #DFB7EB #F4E6F8

Accessibility & contrast

On white

2.62
#CA87DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#CA87DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87DD
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87DD#FFFFFF#000000##000000
##CA87DD1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B9BE0
Deuteranopia (green-blind)
#8CA2DA
Tritanopia (blue-blind)
#CA92A8
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ca87dd;
/* rgb */ color: rgb(202, 135, 221);
/* oklch */ color: oklch(72.2% 0.140 318.6);
Tailwind
colors: {
  custom: {
    50: '#dbabe8',
    500: '#ca87dd',
    950: '#000000',
  },
}
SCSS
$custom: #ca87dd;
$custom-light: #dbabe8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87dd",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 221
  },
  "hsl": {
    "h": 286.744,
    "s": 55.844,
    "l": 69.804
  },
  "oklch": {
    "l": 0.72161,
    "c": 0.14021,
    "h": 318.6
  },
  "luminance": 0.35105
}

Semantic roles & 50–950 ramp

primary
#CA87DD
secondary
#D9ECD4
accent
#C32246
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA87DD

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

Preview Lab → · Contrast checker → · Palette generator →

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