#CA87F3#CA87F3

#CA87F3 is a light, vivid violet. Relative luminance 0.364; OKLCH L 73.2% C 0.165 H 311.5°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#CA87F3
RGBrgb(202, 135, 243)
HSLhsl(277, 82%, 74%)
HSVhsv(277, 44%, 95%)
CMYKcmyk(16.9%, 44.4%, 0%, 4.7%)
CIE-LABlab(66.79, 44.59, -44.40)
CIE-LCHlch(66.79, 62.93, 315.13°)
OKLaboklab(73.2% 0.1092 -0.1234)
OKLCHoklch(73.2% 0.165 311.5)
XYZxyz(49.1959, 36.3565, 89.2025)
Luminance0.3636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F3 #B0F387
analogous
#9487F3 #CA87F3 #F387E6
triadic
#CA87F3 #F3CA87 #87F3CA
tetradic
#CA87F3 #F39487 #B0F387 #87E6F3
square
#CA87F3 #F39487 #B0F387 #87E6F3
split-complementary
#CA87F3 #E6F387 #87F394
monochromatic
#9918E8 #B14FED #CA87F3 #E3BFF9 #F3E3FC

Accessibility & contrast

On white

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

On black

8.27
#CA87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F3
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F3#FFFFFF#000000##000000
##CA87F31.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF7
Deuteranopia (green-blind)
#81A4F0
Tritanopia (blue-blind)
#C697B2
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ca87f3;
/* rgb */ color: rgb(202, 135, 243);
/* oklch */ color: oklch(73.2% 0.165 311.5);
Tailwind
colors: {
  custom: {
    50: '#dcabf7',
    500: '#ca87f3',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f3;
$custom-light: #dcabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f3",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 277.222,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73196,
    "c": 0.16474,
    "h": 311.5
  },
  "luminance": 0.36356
}

Semantic roles & 50–950 ramp

primary
#CA87F3
secondary
#E2F4D7
accent
#DE0759
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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