#CA87DC#CA87DC

#CA87DC is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.1% C 0.139 H 319.0°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#CA87DC
RGBrgb(202, 135, 220)
HSLhsl(287, 55%, 70%)
HSVhsv(287, 39%, 86%)
CMYKcmyk(8.2%, 38.6%, 0%, 13.7%)
CIE-LABlab(65.79, 39.84, -33.26)
CIE-LCHlch(65.79, 51.90, 320.15°)
OKLaboklab(72.12% 0.1049 -0.0913)
OKLCHoklch(72.12% 0.139 319)
XYZxyz(45.9376, 35.0532, 72.0423)
Luminance0.3505 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87DC #99DC87
analogous
#A087DC #CA87DC #DC87C4
triadic
#CA87DC #DCCA87 #87DCCA
tetradic
#CA87DC #DCA087 #99DC87 #87C4DC
square
#CA87DC #DCA087 #99DC87 #87C4DC
split-complementary
#CA87DC #C4DC87 #87DCA0
monochromatic
#9935B4 #B558CE #CA87DC #DFB6EA #F4E6F8

Accessibility & contrast

On white

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

On black

8.01
#CA87DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87DC
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87DC#FFFFFF#000000##000000
##CA87DC1.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B9BDF
Deuteranopia (green-blind)
#8CA2D9
Tritanopia (blue-blind)
#CB91A7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ca87dc;
/* rgb */ color: rgb(202, 135, 220);
/* oklch */ color: oklch(72.1% 0.139 319.0);
Tailwind
colors: {
  custom: {
    50: '#dbabe7',
    500: '#ca87dc',
    950: '#000000',
  },
}
SCSS
$custom: #ca87dc;
$custom-light: #dbabe7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87dc",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 287.294,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72116,
    "c": 0.13912,
    "h": 319
  },
  "luminance": 0.35052
}

Semantic roles & 50–950 ramp

primary
#CA87DC
secondary
#D8ECD3
accent
#C22345
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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