#CA87EC#CA87EC

#CA87EC is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.9% C 0.157 H 313.5°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#CA87EC
RGBrgb(202, 135, 236)
HSLhsl(280, 73%, 73%)
HSVhsv(280, 43%, 93%)
CMYKcmyk(14.4%, 42.8%, 0%, 7.5%)
CIE-LABlab(66.48, 43.11, -41.04)
CIE-LCHlch(66.48, 59.53, 316.41°)
OKLaboklab(72.86% 0.108 -0.1137)
OKLCHoklch(72.86% 0.157 313.5)
XYZxyz(48.1589, 35.9417, 83.7411)
Luminance0.3594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87EC #A9EC87
analogous
#9787EC #CA87EC #EC87DB
triadic
#CA87EC #ECCA87 #87ECCA
tetradic
#CA87EC #EC9787 #A9EC87 #87DBEC
square
#CA87EC #EC9787 #A9EC87 #87DBEC
split-complementary
#CA87EC #DBEC87 #87EC97
monochromatic
#9A22D7 #B352E4 #CA87EC #E1BCF4 #F3E5FB

Accessibility & contrast

On white

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

On black

8.19
#CA87EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87EC
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87EC#FFFFFF#000000##000000
##CA87EC1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#749EF0
Deuteranopia (green-blind)
#85A3E9
Tritanopia (blue-blind)
#C796AE
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ca87ec;
/* rgb */ color: rgb(202, 135, 236);
/* oklch */ color: oklch(72.9% 0.157 313.5);
Tailwind
colors: {
  custom: {
    50: '#dcabf2',
    500: '#ca87ec',
    950: '#000000',
  },
}
SCSS
$custom: #ca87ec;
$custom-light: #dcabf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87ec",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 279.802,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72856,
    "c": 0.15682,
    "h": 313.5
  },
  "luminance": 0.35941
}

Semantic roles & 50–950 ramp

primary
#CA87EC
secondary
#E1F2D9
accent
#D51153
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87EC

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

Preview Lab → · Contrast checker → · Palette generator →

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