#CA87E9#CA87E9

#CA87E9 is a light, vivid purple. Relative luminance 0.358; OKLCH L 72.7% C 0.153 H 314.5°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#CA87E9
RGBrgb(202, 135, 233)
HSLhsl(281, 69%, 72%)
HSVhsv(281, 42%, 91%)
CMYKcmyk(13.3%, 42.1%, 0%, 8.6%)
CIE-LABlab(66.34, 42.49, -39.60)
CIE-LCHlch(66.34, 58.08, 317.02°)
OKLaboklab(72.71% 0.1075 -0.1095)
OKLCHoklch(72.71% 0.153 314.5)
XYZxyz(47.7267, 35.7688, 81.4649)
Luminance0.3577 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87E9 #A6E987
analogous
#9987E9 #CA87E9 #E987D7
triadic
#CA87E9 #E9CA87 #87E9CA
tetradic
#CA87E9 #E99987 #A6E987 #87D7E9
square
#CA87E9 #E99987 #A6E987 #87D7E9
split-complementary
#CA87E9 #D7E987 #87E999
monochromatic
#9A26D0 #B353E0 #CA87E9 #E1BBF2 #F4E5FA

Accessibility & contrast

On white

2.58
#CA87E9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#CA87E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87E9
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87E9#FFFFFF#000000##000000
##CA87E91.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#759DED
Deuteranopia (green-blind)
#86A3E6
Tritanopia (blue-blind)
#C895AD
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ca87e9;
/* rgb */ color: rgb(202, 135, 233);
/* oklch */ color: oklch(72.7% 0.153 314.5);
Tailwind
colors: {
  custom: {
    50: '#dcabf0',
    500: '#ca87e9',
    950: '#000000',
  },
}
SCSS
$custom: #ca87e9;
$custom-light: #dcabf0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87e9",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 233
  },
  "hsl": {
    "h": 281.02,
    "s": 69.014,
    "l": 72.157
  },
  "oklch": {
    "l": 0.72713,
    "c": 0.15346,
    "h": 314.5
  },
  "luminance": 0.35768
}

Semantic roles & 50–950 ramp

primary
#CA87E9
secondary
#E1F2D9
accent
#D11550
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA87E9

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

Preview Lab → · Contrast checker → · Palette generator →

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