#CA87CA#CA87CA

#CA87CA is a light, vivid purple. Relative luminance 0.341; OKLCH L 71.3% C 0.120 H 326.7°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#CA87CA
RGBrgb(202, 135, 202)
HSLhsl(300, 39%, 66%)
HSVhsv(300, 33%, 79%)
CMYKcmyk(0%, 33.2%, 0%, 20.8%)
CIE-LABlab(65.08, 36.36, -24.31)
CIE-LCHlch(65.08, 43.74, 326.23°)
OKLaboklab(71.35% 0.1006 -0.066)
OKLCHoklch(71.35% 0.12 326.7)
XYZxyz(43.6808, 34.1504, 60.1564)
Luminance0.3415 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87CA #87CA87
analogous
#A887CA #CA87CA #CA87A8
triadic
#CA87CA #CACA87 #87CACA
tetradic
#CA87CA #CAA887 #87CA87 #87A8CA
square
#CA87CA #CAA887 #87CA87 #87A8CA
split-complementary
#CA87CA #A8CA87 #87CAA8
monochromatic
#954295 #B75DB7 #CA87CA #DDB1DD #EFDCEF

Accessibility & contrast

On white

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

On black

7.83
#CA87CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87CA
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87CA#FFFFFF#000000##000000
##CA87CA1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8299CD
Deuteranopia (green-blind)
#93A1C8
Tritanopia (blue-blind)
#CE8DA0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ca87ca;
/* rgb */ color: rgb(202, 135, 202);
/* oklch */ color: oklch(71.3% 0.120 326.7);
Tailwind
colors: {
  custom: {
    50: '#dbabda',
    500: '#ca87ca',
    950: '#000000',
  },
}
SCSS
$custom: #ca87ca;
$custom-light: #dbabda;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87ca",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 300,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.71348,
    "c": 0.12034,
    "h": 326.7
  },
  "luminance": 0.34149
}

Semantic roles & 50–950 ramp

primary
#CA87CA
secondary
#CBE1CB
accent
#B23434
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#151014
muted
#837F83

Preview Lab

Preview with #CA87CA

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

Preview Lab → · Contrast checker → · Palette generator →

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