#CA87DF#CA87DF

#CA87DF is a light, vivid purple. Relative luminance 0.352; OKLCH L 72.3% C 0.142 H 317.8°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#CA87DF
RGBrgb(202, 135, 223)
HSLhsl(286, 58%, 70%)
HSVhsv(286, 39%, 87%)
CMYKcmyk(9.4%, 39.5%, 0%, 12.5%)
CIE-LABlab(65.91, 40.44, -34.73)
CIE-LCHlch(65.91, 53.31, 319.35°)
OKLaboklab(72.25% 0.1056 -0.0956)
OKLCHoklch(72.25% 0.142 317.8)
XYZxyz(46.3385, 35.2135, 74.1536)
Luminance0.3521 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87DF #9CDF87
analogous
#9E87DF #CA87DF #DF87C8
triadic
#CA87DF #DFCA87 #87DFCA
tetradic
#CA87DF #DF9E87 #9CDF87 #87C8DF
square
#CA87DF #DF9E87 #9CDF87 #87C8DF
split-complementary
#CA87DF #C8DF87 #87DF9E
monochromatic
#9932BA #B557D2 #CA87DF #DFB7EC #F4E7F9

Accessibility & contrast

On white

2.61
#CA87DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#CA87DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87DF
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87DF#FFFFFF#000000##000000
##CA87DF1.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A9CE2
Deuteranopia (green-blind)
#8BA2DC
Tritanopia (blue-blind)
#CA92A9
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ca87df;
/* rgb */ color: rgb(202, 135, 223);
/* oklch */ color: oklch(72.3% 0.142 317.8);
Tailwind
colors: {
  custom: {
    50: '#dbabe9',
    500: '#ca87df',
    950: '#000000',
  },
}
SCSS
$custom: #ca87df;
$custom-light: #dbabe9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87df",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 285.682,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.72251,
    "c": 0.14239,
    "h": 317.8
  },
  "luminance": 0.35212
}

Semantic roles & 50–950 ramp

primary
#CA87DF
secondary
#DBEDD5
accent
#C52047
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA87DF

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

Preview Lab → · Contrast checker → · Palette generator →

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