#CA87EF#CA87EF

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

Color values

HEX#CA87EF
RGBrgb(202, 135, 239)
HSLhsl(279, 76%, 73%)
HSVhsv(279, 44%, 94%)
CMYKcmyk(15.5%, 43.5%, 0%, 6.3%)
CIE-LABlab(66.61, 43.74, -42.48)
CIE-LCHlch(66.61, 60.98, 315.84°)
OKLaboklab(73% 0.1085 -0.1178)
OKLCHoklch(73% 0.16 312.6)
XYZxyz(48.5984, 36.1175, 86.0559)
Luminance0.3612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87EF #ACEF87
analogous
#9687EF #CA87EF #EF87E0
triadic
#CA87EF #EFCA87 #87EFCA
tetradic
#CA87EF #EF9687 #ACEF87 #87E0EF
square
#CA87EF #EF9687 #ACEF87 #87E0EF
split-complementary
#CA87EF #E0EF87 #87EF96
monochromatic
#9A1EDE #B251E8 #CA87EF #E2BDF6 #F3E4FB

Accessibility & contrast

On white

2.55
#CA87EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#CA87EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87EF
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87EF#FFFFFF#000000##000000
##CA87EF1.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF3
Deuteranopia (green-blind)
#83A4EC
Tritanopia (blue-blind)
#C796B0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ca87ef;
/* rgb */ color: rgb(202, 135, 239);
/* oklch */ color: oklch(73.0% 0.160 312.6);
Tailwind
colors: {
  custom: {
    50: '#dcabf4',
    500: '#ca87ef',
    950: '#000000',
  },
}
SCSS
$custom: #ca87ef;
$custom-light: #dcabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87ef",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 278.654,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73001,
    "c": 0.1602,
    "h": 312.6
  },
  "luminance": 0.36116
}

Semantic roles & 50–950 ramp

primary
#CA87EF
secondary
#E2F3D8
accent
#D90D55
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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