#CA87E5#CA87E5

#CA87E5 is a light, vivid purple. Relative luminance 0.355; OKLCH L 72.5% C 0.149 H 315.8°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#CA87E5
RGBrgb(202, 135, 229)
HSLhsl(283, 64%, 71%)
HSVhsv(283, 41%, 90%)
CMYKcmyk(11.8%, 41%, 0%, 10.2%)
CIE-LABlab(66.17, 41.66, -37.66)
CIE-LCHlch(66.17, 56.16, 317.89°)
OKLaboklab(72.53% 0.1068 -0.1039)
OKLCHoklch(72.53% 0.149 315.8)
XYZxyz(47.1618, 35.5428, 78.4896)
Luminance0.3554 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87E5 #A2E587
analogous
#9B87E5 #CA87E5 #E587D1
triadic
#CA87E5 #E5CA87 #87E5CA
tetradic
#CA87E5 #E59B87 #A2E587 #87D1E5
square
#CA87E5 #E59B87 #A2E587 #87D1E5
split-complementary
#CA87E5 #D1E587 #87E59B
monochromatic
#9A2BC7 #B455DA #CA87E5 #E0B9F0 #F4E6FA

Accessibility & contrast

On white

2.59
#CA87E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#CA87E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87E5
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87E5#FFFFFF#000000##000000
##CA87E51.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#779DE8
Deuteranopia (green-blind)
#88A3E2
Tritanopia (blue-blind)
#C994AB
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ca87e5;
/* rgb */ color: rgb(202, 135, 229);
/* oklch */ color: oklch(72.5% 0.149 315.8);
Tailwind
colors: {
  custom: {
    50: '#dbabed',
    500: '#ca87e5',
    950: '#000000',
  },
}
SCSS
$custom: #ca87e5;
$custom-light: #dbabed;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87e5",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 229
  },
  "hsl": {
    "h": 282.766,
    "s": 64.384,
    "l": 71.373
  },
  "oklch": {
    "l": 0.72526,
    "c": 0.149,
    "h": 315.8
  },
  "luminance": 0.35542
}

Semantic roles & 50–950 ramp

primary
#CA87E5
secondary
#DFF0D8
accent
#CC194D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA87E5

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

Preview Lab → · Contrast checker → · Palette generator →

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