#CA87DB#CA87DB

#CA87DB is a light, vivid purple. Relative luminance 0.350; OKLCH L 72.1% C 0.138 H 319.3°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#CA87DB
RGBrgb(202, 135, 219)
HSLhsl(288, 54%, 69%)
HSVhsv(288, 38%, 86%)
CMYKcmyk(7.8%, 38.4%, 0%, 14.1%)
CIE-LABlab(65.75, 39.64, -32.77)
CIE-LCHlch(65.75, 51.43, 320.42°)
OKLaboklab(72.07% 0.1047 -0.0899)
OKLCHoklch(72.07% 0.138 319.3)
XYZxyz(45.8056, 35.0004, 71.3469)
Luminance0.3500 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87DB #98DB87
analogous
#A087DB #CA87DB #DB87C2
triadic
#CA87DB #DBCA87 #87DBCA
tetradic
#CA87DB #DBA087 #98DB87 #87C2DB
square
#CA87DB #DBA087 #98DB87 #87C2DB
split-complementary
#CA87DB #C2DB87 #87DBA0
monochromatic
#9935B2 #B558CD #CA87DB #DFB6E9 #F4E5F7

Accessibility & contrast

On white

2.63
#CA87DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#CA87DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87DB
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87DB#FFFFFF#000000##000000
##CA87DB1.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C9BDE
Deuteranopia (green-blind)
#8CA2D8
Tritanopia (blue-blind)
#CB91A7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ca87db;
/* rgb */ color: rgb(202, 135, 219);
/* oklch */ color: oklch(72.1% 0.138 319.3);
Tailwind
colors: {
  custom: {
    50: '#dbabe6',
    500: '#ca87db',
    950: '#000000',
  },
}
SCSS
$custom: #ca87db;
$custom-light: #dbabe6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87db",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 287.857,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.72072,
    "c": 0.13804,
    "h": 319.3
  },
  "luminance": 0.34999
}

Semantic roles & 50–950 ramp

primary
#CA87DB
secondary
#D8EBD3
accent
#C12444
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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