#CA87FF#CA87FF

#CA87FF is a light, vivid violet. Relative luminance 0.371; OKLCH L 73.8% C 0.178 H 308.4°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#CA87FF
RGBrgb(202, 135, 255)
HSLhsl(274, 100%, 76%)
HSVhsv(274, 47%, 100%)
CMYKcmyk(20.8%, 47.1%, 0%, 0%)
CIE-LABlab(67.36, 47.19, -50.08)
CIE-LCHlch(67.36, 68.81, 313.30°)
OKLaboklab(73.8% 0.1108 -0.1398)
OKLCHoklch(73.8% 0.178 308.4)
XYZxyz(51.0676, 37.1051, 99.0601)
Luminance0.3710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87FF #BCFF87
analogous
#8E87FF #CA87FF #FF87F8
triadic
#CA87FF #FFCA87 #87FFCA
tetradic
#CA87FF #FF8E87 #BCFF87 #87F8FF
square
#CA87FF #FF8E87 #BCFF87 #87F8FF
split-complementary
#CA87FF #F8FF87 #87FF8E
monochromatic
#940DFF #AF4AFF #CA87FF #E5C4FF #F1E0FF

Accessibility & contrast

On white

2.49
#CA87FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#CA87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87FF
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87FF#FFFFFF#000000##000000
##CA87FF1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A1FF
Deuteranopia (green-blind)
#7BA5FC
Tritanopia (blue-blind)
#C39BB7
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ca87ff;
/* rgb */ color: rgb(202, 135, 255);
/* oklch */ color: oklch(73.8% 0.178 308.4);
Tailwind
colors: {
  custom: {
    50: '#dcabff',
    500: '#ca87ff',
    950: '#000000',
  },
}
SCSS
$custom: #ca87ff;
$custom-light: #dcabff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87ff",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 273.5,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.73802,
    "c": 0.17844,
    "h": 308.4
  },
  "luminance": 0.37105
}

Semantic roles & 50–950 ramp

primary
#CA87FF
secondary
#E3F7D4
accent
#E60065
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CA87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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