#CA87F0#CA87F0

#CA87F0 is a light, vivid violet. Relative luminance 0.362; OKLCH L 73.0% C 0.161 H 312.4°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#CA87F0
RGBrgb(202, 135, 240)
HSLhsl(278, 78%, 74%)
HSVhsv(278, 44%, 94%)
CMYKcmyk(15.8%, 43.8%, 0%, 5.9%)
CIE-LABlab(66.65, 43.96, -42.96)
CIE-LCHlch(66.65, 61.47, 315.65°)
OKLaboklab(73.05% 0.1087 -0.1192)
OKLCHoklch(73.05% 0.161 312.4)
XYZxyz(48.7466, 36.1767, 86.8361)
Luminance0.3618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F0 #ADF087
analogous
#9587F0 #CA87F0 #F087E1
triadic
#CA87F0 #F0CA87 #87F0CA
tetradic
#CA87F0 #F09587 #ADF087 #87E1F0
square
#CA87F0 #F09587 #ADF087 #87E1F0
split-complementary
#CA87F0 #E1F087 #87F095
monochromatic
#991CE1 #B251E9 #CA87F0 #E2BDF7 #F3E4FC

Accessibility & contrast

On white

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

On black

8.24
#CA87F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F0
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F0#FFFFFF#000000##000000
##CA87F01.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF4
Deuteranopia (green-blind)
#83A4ED
Tritanopia (blue-blind)
#C697B0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ca87f0;
/* rgb */ color: rgb(202, 135, 240);
/* oklch */ color: oklch(73.0% 0.161 312.4);
Tailwind
colors: {
  custom: {
    50: '#dcabf5',
    500: '#ca87f0',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f0;
$custom-light: #dcabf5;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f0",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 278.286,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.73049,
    "c": 0.16134,
    "h": 312.4
  },
  "luminance": 0.36176
}

Semantic roles & 50–950 ramp

primary
#CA87F0
secondary
#E2F3D8
accent
#DA0B56
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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