#CA87F5#CA87F5

#CA87F5 is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.3% C 0.167 H 311.0°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#CA87F5
RGBrgb(202, 135, 245)
HSLhsl(277, 85%, 75%)
HSVhsv(277, 45%, 96%)
CMYKcmyk(17.6%, 44.9%, 0%, 3.9%)
CIE-LABlab(66.88, 45.02, -45.35)
CIE-LCHlch(66.88, 63.90, 314.79°)
OKLaboklab(73.3% 0.1095 -0.1261)
OKLCHoklch(73.3% 0.167 311)
XYZxyz(49.4996, 36.4779, 90.8018)
Luminance0.3648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F5 #B2F587
analogous
#9387F5 #CA87F5 #F587E9
triadic
#CA87F5 #F5CA87 #87F5CA
tetradic
#CA87F5 #F59387 #B2F587 #87E9F5
square
#CA87F5 #F59387 #B2F587 #87E9F5
split-complementary
#CA87F5 #E9F587 #87F593
monochromatic
#9816EC #B14FF0 #CA87F5 #E3BFFA #F3E3FD

Accessibility & contrast

On white

2.53
#CA87F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#CA87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F5
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F5#FFFFFF#000000##000000
##CA87F51.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9FF9
Deuteranopia (green-blind)
#80A4F2
Tritanopia (blue-blind)
#C598B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ca87f5;
/* rgb */ color: rgb(202, 135, 245);
/* oklch */ color: oklch(73.3% 0.167 311.0);
Tailwind
colors: {
  custom: {
    50: '#dcabf9',
    500: '#ca87f5',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f5;
$custom-light: #dcabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f5",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 276.545,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73295,
    "c": 0.167,
    "h": 311
  },
  "luminance": 0.36477
}

Semantic roles & 50–950 ramp

primary
#CA87F5
secondary
#E2F5D6
accent
#E1045B
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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