#CA87FB#CA87FB

#CA87FB is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.6% C 0.174 H 309.4°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#CA87FB
RGBrgb(202, 135, 251)
HSLhsl(275, 94%, 76%)
HSVhsv(275, 46%, 98%)
CMYKcmyk(19.5%, 46.2%, 0%, 1.6%)
CIE-LABlab(67.16, 46.31, -48.19)
CIE-LCHlch(67.16, 66.84, 313.86°)
OKLaboklab(73.6% 0.1103 -0.1344)
OKLCHoklch(73.6% 0.174 309.4)
XYZxyz(50.4304, 36.8503, 95.7042)
Luminance0.3685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87FB #B8FB87
analogous
#9087FB #CA87FB #FB87F2
triadic
#CA87FB #FBCA87 #87FBCA
tetradic
#CA87FB #FB9087 #B8FB87 #87F2FB
square
#CA87FB #FB9087 #B8FB87 #87F2FB
split-complementary
#CA87FB #F2FB87 #87FB90
monochromatic
#9611F7 #B04CF9 #CA87FB #E4C2FD #F2E1FE

Accessibility & contrast

On white

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

On black

8.37
#CA87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87FB
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87FB#FFFFFF#000000##000000
##CA87FB1.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA0FF
Deuteranopia (green-blind)
#7DA5F8
Tritanopia (blue-blind)
#C49AB5
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ca87fb;
/* rgb */ color: rgb(202, 135, 251);
/* oklch */ color: oklch(73.6% 0.174 309.4);
Tailwind
colors: {
  custom: {
    50: '#dcabfd',
    500: '#ca87fb',
    950: '#000000',
  },
}
SCSS
$custom: #ca87fb;
$custom-light: #dcabfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87fb",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 274.655,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73597,
    "c": 0.17386,
    "h": 309.4
  },
  "luminance": 0.3685
}

Semantic roles & 50–950 ramp

primary
#CA87FB
secondary
#E3F6D5
accent
#E60061
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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