#CA87CC#CA87CC

#CA87CC is a light, vivid purple. Relative luminance 0.342; OKLCH L 71.4% C 0.122 H 325.8°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#CA87CC
RGBrgb(202, 135, 204)
HSLhsl(298, 40%, 66%)
HSVhsv(298, 34%, 80%)
CMYKcmyk(1%, 33.8%, 0%, 20%)
CIE-LABlab(65.16, 36.74, -25.32)
CIE-LCHlch(65.16, 44.62, 325.43°)
OKLaboklab(71.43% 0.1012 -0.0688)
OKLCHoklch(71.43% 0.122 325.8)
XYZxyz(43.9192, 34.2458, 61.4117)
Luminance0.3424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87CC #89CC87
analogous
#A887CC #CA87CC #CC87AC
triadic
#CA87CC #CCCA87 #87CCCA
tetradic
#CA87CC #CCA887 #89CC87 #87ACCC
square
#CA87CC #CCA887 #89CC87 #87ACCC
split-complementary
#CA87CC #ACCC87 #87CCA8
monochromatic
#954198 #B75CBA #CA87CC #DDB2DE #F0DDF1

Accessibility & contrast

On white

2.68
#CA87CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#CA87CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87CC
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87CC#FFFFFF#000000##000000
##CA87CC1.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8199CF
Deuteranopia (green-blind)
#92A1CA
Tritanopia (blue-blind)
#CE8DA0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ca87cc;
/* rgb */ color: rgb(202, 135, 204);
/* oklch */ color: oklch(71.4% 0.122 325.8);
Tailwind
colors: {
  custom: {
    50: '#dbabdb',
    500: '#ca87cc',
    950: '#000000',
  },
}
SCSS
$custom: #ca87cc;
$custom-light: #dbabdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87cc",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 298.261,
    "s": 40.351,
    "l": 66.471
  },
  "oklch": {
    "l": 0.7143,
    "c": 0.12234,
    "h": 325.8
  },
  "luminance": 0.34244
}

Semantic roles & 50–950 ramp

primary
#CA87CC
secondary
#CDE3CC
accent
#B33236
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #CA87CC

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

Preview Lab → · Contrast checker → · Palette generator →

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