#CA87D2#CA87D2

#CA87D2 is a light, vivid purple. Relative luminance 0.345; OKLCH L 71.7% C 0.128 H 323.0°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#CA87D2
RGBrgb(202, 135, 210)
HSLhsl(294, 45%, 68%)
HSVhsv(294, 36%, 82%)
CMYKcmyk(3.8%, 35.7%, 0%, 17.6%)
CIE-LABlab(65.39, 37.88, -28.31)
CIE-LCHlch(65.39, 47.29, 323.22°)
OKLaboklab(71.68% 0.1027 -0.0773)
OKLCHoklch(71.68% 0.128 323)
XYZxyz(44.6527, 34.5392, 65.2749)
Luminance0.3454 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87D2 #8FD287
analogous
#A487D2 #CA87D2 #D287B4
triadic
#CA87D2 #D2CA87 #87D2CA
tetradic
#CA87D2 #D2A487 #8FD287 #87B4D2
square
#CA87D2 #D2A487 #8FD287 #87B4D2
split-complementary
#CA87D2 #B4D287 #87D2A4
monochromatic
#973DA2 #B65AC1 #CA87D2 #DEB4E3 #F1E0F3

Accessibility & contrast

On white

2.66
#CA87D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#CA87D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87D2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87D2#FFFFFF#000000##000000
##CA87D21.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F9AD5
Deuteranopia (green-blind)
#90A2D0
Tritanopia (blue-blind)
#CD8FA3
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ca87d2;
/* rgb */ color: rgb(202, 135, 210);
/* oklch */ color: oklch(71.7% 0.128 323.0);
Tailwind
colors: {
  custom: {
    50: '#dbabe0',
    500: '#ca87d2',
    950: '#000000',
  },
}
SCSS
$custom: #ca87d2;
$custom-light: #dbabe0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87d2",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 210
  },
  "hsl": {
    "h": 293.6,
    "s": 45.455,
    "l": 67.647
  },
  "oklch": {
    "l": 0.71681,
    "c": 0.12849,
    "h": 323
  },
  "luminance": 0.34538
}

Semantic roles & 50–950 ramp

primary
#CA87D2
secondary
#D1E6CF
accent
#B92D3C
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #CA87D2

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

Preview Lab → · Contrast checker → · Palette generator →

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