#CA87E2#CA87E2

#CA87E2 is a light, vivid purple. Relative luminance 0.354; OKLCH L 72.4% C 0.146 H 316.8°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#CA87E2
RGBrgb(202, 135, 226)
HSLhsl(284, 61%, 71%)
HSVhsv(284, 40%, 89%)
CMYKcmyk(10.6%, 40.3%, 0%, 11.4%)
CIE-LABlab(66.04, 41.05, -36.20)
CIE-LCHlch(66.04, 54.73, 318.60°)
OKLaboklab(72.39% 0.1062 -0.0998)
OKLCHoklch(72.39% 0.146 316.8)
XYZxyz(46.7466, 35.3767, 76.3026)
Luminance0.3538 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87E2 #9FE287
analogous
#9C87E2 #CA87E2 #E287CC
triadic
#CA87E2 #E2CA87 #87E2CA
tetradic
#CA87E2 #E29C87 #9FE287 #87CCE2
square
#CA87E2 #E29C87 #9FE287 #87CCE2
split-complementary
#CA87E2 #CCE287 #87E29C
monochromatic
#9A2EC0 #B456D6 #CA87E2 #E0B8EE #F4E6F9

Accessibility & contrast

On white

2.60
#CA87E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#CA87E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87E2
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87E2#FFFFFF#000000##000000
##CA87E21.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#789CE5
Deuteranopia (green-blind)
#89A3DF
Tritanopia (blue-blind)
#C993AA
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ca87e2;
/* rgb */ color: rgb(202, 135, 226);
/* oklch */ color: oklch(72.4% 0.146 316.8);
Tailwind
colors: {
  custom: {
    50: '#dbabeb',
    500: '#ca87e2',
    950: '#000000',
  },
}
SCSS
$custom: #ca87e2;
$custom-light: #dbabeb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87e2",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 226
  },
  "hsl": {
    "h": 284.176,
    "s": 61.074,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72387,
    "c": 0.14569,
    "h": 316.8
  },
  "luminance": 0.35375
}

Semantic roles & 50–950 ramp

primary
#CA87E2
secondary
#DDEFD6
accent
#C91D4A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA87E2

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

Preview Lab → · Contrast checker → · Palette generator →

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