#CA87F2#CA87F2

#CA87F2 is a light, vivid violet. Relative luminance 0.363; OKLCH L 73.1% C 0.164 H 311.8°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#CA87F2
RGBrgb(202, 135, 242)
HSLhsl(278, 80%, 74%)
HSVhsv(278, 44%, 95%)
CMYKcmyk(16.5%, 44.2%, 0%, 5.1%)
CIE-LABlab(66.75, 44.38, -43.92)
CIE-LCHlch(66.75, 62.44, 315.30°)
OKLaboklab(73.15% 0.109 -0.122)
OKLCHoklch(73.15% 0.164 311.8)
XYZxyz(49.0453, 36.2962, 88.4094)
Luminance0.3629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F2 #AFF287
analogous
#9587F2 #CA87F2 #F287E5
triadic
#CA87F2 #F2CA87 #87F2CA
tetradic
#CA87F2 #F29587 #AFF287 #87E5F2
square
#CA87F2 #F29587 #AFF287 #87E5F2
split-complementary
#CA87F2 #E5F287 #87F295
monochromatic
#9919E6 #B250EC #CA87F2 #E2BEF8 #F3E3FC

Accessibility & contrast

On white

2.54
#CA87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#CA87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F2
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F2#FFFFFF#000000##000000
##CA87F21.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF6
Deuteranopia (green-blind)
#82A4EF
Tritanopia (blue-blind)
#C697B1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ca87f2;
/* rgb */ color: rgb(202, 135, 242);
/* oklch */ color: oklch(73.1% 0.164 311.8);
Tailwind
colors: {
  custom: {
    50: '#dcabf7',
    500: '#ca87f2',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f2;
$custom-light: #dcabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f2",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 277.57,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73147,
    "c": 0.16361,
    "h": 311.8
  },
  "luminance": 0.36295
}

Semantic roles & 50–950 ramp

primary
#CA87F2
secondary
#E2F4D7
accent
#DD0958
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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