#CA87ED#CA87ED

#CA87ED is a light, vivid violet. Relative luminance 0.360; OKLCH L 72.9% C 0.158 H 313.2°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#CA87ED
RGBrgb(202, 135, 237)
HSLhsl(279, 74%, 73%)
HSVhsv(279, 43%, 93%)
CMYKcmyk(14.8%, 43%, 0%, 7.1%)
CIE-LABlab(66.52, 43.32, -41.52)
CIE-LCHlch(66.52, 60.01, 316.22°)
OKLaboklab(72.9% 0.1082 -0.1151)
OKLCHoklch(72.9% 0.158 313.2)
XYZxyz(48.3046, 36.0000, 84.5084)
Luminance0.3600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87ED #AAED87
analogous
#9787ED #CA87ED #ED87DD
triadic
#CA87ED #EDCA87 #87EDCA
tetradic
#CA87ED #ED9787 #AAED87 #87DDED
square
#CA87ED #ED9787 #AAED87 #87DDED
split-complementary
#CA87ED #DDED87 #87ED97
monochromatic
#9A21D9 #B252E5 #CA87ED #E2BCF5 #F3E4FB

Accessibility & contrast

On white

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

On black

8.20
#CA87ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87ED
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87ED#FFFFFF#000000##000000
##CA87ED1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#739EF1
Deuteranopia (green-blind)
#84A3EA
Tritanopia (blue-blind)
#C796AF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ca87ed;
/* rgb */ color: rgb(202, 135, 237);
/* oklch */ color: oklch(72.9% 0.158 313.2);
Tailwind
colors: {
  custom: {
    50: '#dcabf3',
    500: '#ca87ed',
    950: '#000000',
  },
}
SCSS
$custom: #ca87ed;
$custom-light: #dcabf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87ed",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 237
  },
  "hsl": {
    "h": 279.412,
    "s": 73.913,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72904,
    "c": 0.15795,
    "h": 313.2
  },
  "luminance": 0.35999
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA87ED

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

Preview Lab → · Contrast checker → · Palette generator →

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