#CA87FC#CA87FC

#CA87FC is a light, vivid violet. Relative luminance 0.369; OKLCH L 73.6% C 0.175 H 309.1°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#CA87FC
RGBrgb(202, 135, 252)
HSLhsl(274, 95%, 76%)
HSVhsv(274, 46%, 99%)
CMYKcmyk(19.8%, 46.4%, 0%, 1.2%)
CIE-LABlab(67.21, 46.53, -48.67)
CIE-LCHlch(67.21, 67.33, 313.72°)
OKLaboklab(73.65% 0.1104 -0.1357)
OKLCHoklch(73.65% 0.175 309.1)
XYZxyz(50.5884, 36.9135, 96.5366)
Luminance0.3691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87FC #B9FC87
analogous
#8F87FC #CA87FC #FC87F3
triadic
#CA87FC #FCCA87 #87FCCA
tetradic
#CA87FC #FC8F87 #B9FC87 #87F3FC
square
#CA87FC #FC8F87 #B9FC87 #87F3FC
split-complementary
#CA87FC #F3FC87 #87FC8F
monochromatic
#9510F9 #B04BFB #CA87FC #E4C3FD #F2E1FE

Accessibility & contrast

On white

2.51
#CA87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#CA87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87FC
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87FC#FFFFFF#000000##000000
##CA87FC1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA1FF
Deuteranopia (green-blind)
#7DA5F9
Tritanopia (blue-blind)
#C49AB6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ca87fc;
/* rgb */ color: rgb(202, 135, 252);
/* oklch */ color: oklch(73.6% 0.175 309.1);
Tailwind
colors: {
  custom: {
    50: '#dcabfe',
    500: '#ca87fc',
    950: '#000000',
  },
}
SCSS
$custom: #ca87fc;
$custom-light: #dcabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87fc",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 274.359,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73648,
    "c": 0.175,
    "h": 309.1
  },
  "luminance": 0.36913
}

Semantic roles & 50–950 ramp

primary
#CA87FC
secondary
#E3F6D5
accent
#E60062
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CA87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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