#CA87F1#CA87F1

#CA87F1 is a light, vivid violet. Relative luminance 0.362; OKLCH L 73.1% C 0.162 H 312.1°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#CA87F1
RGBrgb(202, 135, 241)
HSLhsl(278, 79%, 74%)
HSVhsv(278, 44%, 95%)
CMYKcmyk(16.2%, 44%, 0%, 5.5%)
CIE-LABlab(66.70, 44.17, -43.44)
CIE-LCHlch(66.70, 61.95, 315.47°)
OKLaboklab(73.1% 0.1089 -0.1206)
OKLCHoklch(73.1% 0.162 312.1)
XYZxyz(48.8955, 36.2363, 87.6206)
Luminance0.3624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F1 #AEF187
analogous
#9587F1 #CA87F1 #F187E3
triadic
#CA87F1 #F1CA87 #87F1CA
tetradic
#CA87F1 #F19587 #AEF187 #87E3F1
square
#CA87F1 #F19587 #AEF187 #87E3F1
split-complementary
#CA87F1 #E3F187 #87F195
monochromatic
#991AE3 #B250EB #CA87F1 #E2BEF7 #F3E4FC

Accessibility & contrast

On white

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

On black

8.25
#CA87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F1
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F1#FFFFFF#000000##000000
##CA87F11.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF5
Deuteranopia (green-blind)
#82A4EE
Tritanopia (blue-blind)
#C697B1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ca87f1;
/* rgb */ color: rgb(202, 135, 241);
/* oklch */ color: oklch(73.1% 0.162 312.1);
Tailwind
colors: {
  custom: {
    50: '#dcabf6',
    500: '#ca87f1',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f1;
$custom-light: #dcabf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f1",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 277.925,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73098,
    "c": 0.16247,
    "h": 312.1
  },
  "luminance": 0.36235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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