#CA87C2#CA87C2

#CA87C2 is a light, moderate purple. Relative luminance 0.338; OKLCH L 71.0% C 0.113 H 331.0°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#CA87C2
RGBrgb(202, 135, 194)
HSLhsl(307, 39%, 66%)
HSVhsv(307, 33%, 79%)
CMYKcmyk(0%, 33.2%, 4%, 20.8%)
CIE-LABlab(64.79, 34.89, -20.28)
CIE-LCHlch(64.79, 40.35, 329.84°)
OKLaboklab(71.03% 0.0985 -0.0547)
OKLCHoklch(71.03% 0.113 331)
XYZxyz(42.7581, 33.7813, 55.2967)
Luminance0.3378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87C2 #87CA8F
analogous
#B087CA #CA87C2 #CA87A0
triadic
#CA87C2 #C2CA87 #87C2CA
tetradic
#CA87C2 #CAB087 #87CA8F #87A0CA
square
#CA87C2 #CAB087 #87CA8F #87A0CA
split-complementary
#CA87C2 #A0CA87 #87CAB0
monochromatic
#95428B #B75DAC #CA87C2 #DDB1D8 #EFDCED

Accessibility & contrast

On white

2.71
#CA87C2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#CA87C2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87C2
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87C2#FFFFFF#000000##000000
##CA87C21.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8597C4
Deuteranopia (green-blind)
#95A0C0
Tritanopia (blue-blind)
#CF8B9C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca87c2;
/* rgb */ color: rgb(202, 135, 194);
/* oklch */ color: oklch(71.0% 0.113 331.0);
Tailwind
colors: {
  custom: {
    50: '#dbabd4',
    500: '#ca87c2',
    950: '#000000',
  },
}
SCSS
$custom: #ca87c2;
$custom-light: #dbabd4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87c2",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 194
  },
  "hsl": {
    "h": 307.164,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.7103,
    "c": 0.11262,
    "h": 331
  },
  "luminance": 0.3378
}

Semantic roles & 50–950 ramp

primary
#CA87C2
secondary
#CBE1CE
accent
#B24334
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#151014
muted
#837F83

Preview Lab

Preview with #CA87C2

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

Preview Lab → · Contrast checker → · Palette generator →

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