#CA87EE#CA87EE

#CA87EE is a light, vivid violet. Relative luminance 0.361; OKLCH L 73.0% C 0.159 H 312.9°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#CA87EE
RGBrgb(202, 135, 238)
HSLhsl(279, 75%, 73%)
HSVhsv(279, 43%, 93%)
CMYKcmyk(15.1%, 43.3%, 0%, 6.7%)
CIE-LABlab(66.56, 43.53, -42.00)
CIE-LCHlch(66.56, 60.49, 316.02°)
OKLaboklab(72.95% 0.1084 -0.1165)
OKLCHoklch(72.95% 0.159 312.9)
XYZxyz(48.4511, 36.0586, 85.2800)
Luminance0.3606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87EE #ABEE87
analogous
#9687EE #CA87EE #EE87DE
triadic
#CA87EE #EECA87 #87EECA
tetradic
#CA87EE #EE9687 #ABEE87 #87DEEE
square
#CA87EE #EE9687 #ABEE87 #87DEEE
split-complementary
#CA87EE #DEEE87 #87EE96
monochromatic
#9A1FDC #B251E6 #CA87EE #E2BDF6 #F3E4FB

Accessibility & contrast

On white

2.56
#CA87EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#CA87EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87EE
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87EE#FFFFFF#000000##000000
##CA87EE1.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF2
Deuteranopia (green-blind)
#84A4EB
Tritanopia (blue-blind)
#C796AF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ca87ee;
/* rgb */ color: rgb(202, 135, 238);
/* oklch */ color: oklch(73.0% 0.159 312.9);
Tailwind
colors: {
  custom: {
    50: '#dcabf4',
    500: '#ca87ee',
    950: '#000000',
  },
}
SCSS
$custom: #ca87ee;
$custom-light: #dcabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87ee",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 279.029,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.72952,
    "c": 0.15907,
    "h": 312.9
  },
  "luminance": 0.36058
}

Semantic roles & 50–950 ramp

primary
#CA87EE
secondary
#E1F3D8
accent
#D70E54
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87EE

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

Preview Lab → · Contrast checker → · Palette generator →

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