#CA87F8#CA87F8

#CA87F8 is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.4% C 0.170 H 310.2°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#CA87F8
RGBrgb(202, 135, 248)
HSLhsl(276, 89%, 75%)
HSVhsv(276, 46%, 97%)
CMYKcmyk(18.5%, 45.6%, 0%, 2.7%)
CIE-LABlab(67.02, 45.66, -46.78)
CIE-LCHlch(67.02, 65.37, 314.31°)
OKLaboklab(73.45% 0.1099 -0.1303)
OKLCHoklch(73.45% 0.17 310.2)
XYZxyz(49.9613, 36.6626, 93.2334)
Luminance0.3666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F8 #B5F887
analogous
#9187F8 #CA87F8 #F887EE
triadic
#CA87F8 #F8CA87 #87F8CA
tetradic
#CA87F8 #F89187 #B5F887 #87EEF8
square
#CA87F8 #F89187 #B5F887 #87EEF8
split-complementary
#CA87F8 #EEF887 #87F891
monochromatic
#9713F1 #B04DF5 #CA87F8 #E4C1FB #F2E2FD

Accessibility & contrast

On white

2.52
#CA87F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#CA87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F8
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F8#FFFFFF#000000##000000
##CA87F81.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA0FC
Deuteranopia (green-blind)
#7FA4F5
Tritanopia (blue-blind)
#C499B4
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ca87f8;
/* rgb */ color: rgb(202, 135, 248);
/* oklch */ color: oklch(73.4% 0.170 310.2);
Tailwind
colors: {
  custom: {
    50: '#dcabfb',
    500: '#ca87f8',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f8;
$custom-light: #dcabfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f8",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 275.575,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73445,
    "c": 0.17043,
    "h": 310.2
  },
  "luminance": 0.36662
}

Semantic roles & 50–950 ramp

primary
#CA87F8
secondary
#E3F5D6
accent
#E6005D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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