#CA87DE#CA87DE

#CA87DE is a light, vivid purple. Relative luminance 0.352; OKLCH L 72.2% C 0.141 H 318.2°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#CA87DE
RGBrgb(202, 135, 222)
HSLhsl(286, 57%, 70%)
HSVhsv(286, 39%, 87%)
CMYKcmyk(9%, 39.2%, 0%, 12.9%)
CIE-LABlab(65.87, 40.24, -34.24)
CIE-LCHlch(65.87, 52.84, 319.61°)
OKLaboklab(72.21% 0.1054 -0.0942)
OKLCHoklch(72.21% 0.141 318.2)
XYZxyz(46.2041, 35.1598, 73.4457)
Luminance0.3516 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87DE #9BDE87
analogous
#9F87DE #CA87DE #DE87C6
triadic
#CA87DE #DECA87 #87DECA
tetradic
#CA87DE #DE9F87 #9BDE87 #87C6DE
square
#CA87DE #DE9F87 #9BDE87 #87C6DE
split-complementary
#CA87DE #C6DE87 #87DE9F
monochromatic
#9933B8 #B557D1 #CA87DE #DFB7EB #F4E7F8

Accessibility & contrast

On white

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

On black

8.03
#CA87DE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87DE
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87DE#FFFFFF#000000##000000
##CA87DE1.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ca87de;
/* rgb */ color: rgb(202, 135, 222);
/* oklch */ color: oklch(72.2% 0.141 318.2);
Tailwind
colors: {
  custom: {
    50: '#dbabe8',
    500: '#ca87de',
    950: '#000000',
  },
}
SCSS
$custom: #ca87de;
$custom-light: #dbabe8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87de",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 222
  },
  "hsl": {
    "h": 286.207,
    "s": 56.863,
    "l": 70
  },
  "oklch": {
    "l": 0.72206,
    "c": 0.1413,
    "h": 318.2
  },
  "luminance": 0.35158
}

Semantic roles & 50–950 ramp

primary
#CA87DE
secondary
#DAEDD4
accent
#C42147
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA87DE

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

Preview Lab → · Contrast checker → · Palette generator →

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