#CA87EA#CA87EA

#CA87EA is a light, vivid purple. Relative luminance 0.358; OKLCH L 72.8% C 0.155 H 314.2°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#CA87EA
RGBrgb(202, 135, 234)
HSLhsl(281, 70%, 72%)
HSVhsv(281, 42%, 92%)
CMYKcmyk(13.7%, 42.3%, 0%, 8.2%)
CIE-LABlab(66.39, 42.70, -40.08)
CIE-LCHlch(66.39, 58.56, 316.81°)
OKLaboklab(72.76% 0.1077 -0.1109)
OKLCHoklch(72.76% 0.155 314.2)
XYZxyz(47.8700, 35.8261, 82.2194)
Luminance0.3583 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87EA #A7EA87
analogous
#9987EA #CA87EA #EA87D9
triadic
#CA87EA #EACA87 #87EACA
tetradic
#CA87EA #EA9987 #A7EA87 #87D9EA
square
#CA87EA #EA9987 #A7EA87 #87D9EA
split-complementary
#CA87EA #D9EA87 #87EA99
monochromatic
#9A25D2 #B353E1 #CA87EA #E1BBF3 #F3E5FA

Accessibility & contrast

On white

2.57
#CA87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#CA87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87EA
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87EA#FFFFFF#000000##000000
##CA87EA1.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#759EEE
Deuteranopia (green-blind)
#86A3E7
Tritanopia (blue-blind)
#C895AD
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ca87ea;
/* rgb */ color: rgb(202, 135, 234);
/* oklch */ color: oklch(72.8% 0.155 314.2);
Tailwind
colors: {
  custom: {
    50: '#dcabf1',
    500: '#ca87ea',
    950: '#000000',
  },
}
SCSS
$custom: #ca87ea;
$custom-light: #dcabf1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87ea",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 280.606,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72761,
    "c": 0.15458,
    "h": 314.2
  },
  "luminance": 0.35825
}

Semantic roles & 50–950 ramp

primary
#CA87EA
secondary
#E1F2D9
accent
#D21351
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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