#CA87F9#CA87F9

#CA87F9 is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.5% C 0.172 H 309.9°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#CA87F9
RGBrgb(202, 135, 249)
HSLhsl(275, 90%, 75%)
HSVhsv(275, 46%, 98%)
CMYKcmyk(18.9%, 45.8%, 0%, 2.4%)
CIE-LABlab(67.07, 45.88, -47.25)
CIE-LCHlch(67.07, 65.86, 314.16°)
OKLaboklab(73.5% 0.11 -0.1316)
OKLCHoklch(73.5% 0.172 309.9)
XYZxyz(50.1168, 36.7248, 94.0526)
Luminance0.3672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F9 #B6F987
analogous
#9187F9 #CA87F9 #F987EF
triadic
#CA87F9 #F9CA87 #87F9CA
tetradic
#CA87F9 #F99187 #B6F987 #87EFF9
square
#CA87F9 #F99187 #B6F987 #87EFF9
split-complementary
#CA87F9 #EFF987 #87F991
monochromatic
#9712F3 #B04DF6 #CA87F9 #E4C1FC #F2E2FE

Accessibility & contrast

On white

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

On black

8.34
#CA87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F9
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F9#FFFFFF#000000##000000
##CA87F91.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ca87f9;
/* rgb */ color: rgb(202, 135, 249);
/* oklch */ color: oklch(73.5% 0.172 309.9);
Tailwind
colors: {
  custom: {
    50: '#dcabfc',
    500: '#ca87f9',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f9;
$custom-light: #dcabfc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f9",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 275.263,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.73495,
    "c": 0.17157,
    "h": 309.9
  },
  "luminance": 0.36724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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