#CA87E6#CA87E6

#CA87E6 is a light, vivid purple. Relative luminance 0.356; OKLCH L 72.6% C 0.150 H 315.4°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#CA87E6
RGBrgb(202, 135, 230)
HSLhsl(282, 66%, 72%)
HSVhsv(282, 41%, 90%)
CMYKcmyk(12.2%, 41.3%, 0%, 9.8%)
CIE-LABlab(66.21, 41.87, -38.14)
CIE-LCHlch(66.21, 56.64, 317.67°)
OKLaboklab(72.57% 0.1069 -0.1053)
OKLCHoklch(72.57% 0.15 315.4)
XYZxyz(47.3018, 35.5988, 79.2271)
Luminance0.3560 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87E6 #A3E687
analogous
#9B87E6 #CA87E6 #E687D3
triadic
#CA87E6 #E6CA87 #87E6CA
tetradic
#CA87E6 #E69B87 #A3E687 #87D3E6
square
#CA87E6 #E69B87 #A3E687 #87D3E6
split-complementary
#CA87E6 #D3E687 #87E69B
monochromatic
#9A2AC9 #B454DB #CA87E6 #E0BAF1 #F4E6FA

Accessibility & contrast

On white

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

On black

8.12
#CA87E6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87E6
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87E6#FFFFFF#000000##000000
##CA87E61.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#779DE9
Deuteranopia (green-blind)
#88A3E3
Tritanopia (blue-blind)
#C994AC
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ca87e6;
/* rgb */ color: rgb(202, 135, 230);
/* oklch */ color: oklch(72.6% 0.150 315.4);
Tailwind
colors: {
  custom: {
    50: '#dbabee',
    500: '#ca87e6',
    950: '#000000',
  },
}
SCSS
$custom: #ca87e6;
$custom-light: #dbabee;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87e6",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 230
  },
  "hsl": {
    "h": 282.316,
    "s": 65.517,
    "l": 71.569
  },
  "oklch": {
    "l": 0.72572,
    "c": 0.15011,
    "h": 315.4
  },
  "luminance": 0.35598
}

Semantic roles & 50–950 ramp

primary
#CA87E6
secondary
#DFF1D8
accent
#CD184E
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA87E6

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

Preview Lab → · Contrast checker → · Palette generator →

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