#CA87F7#CA87F7

#CA87F7 is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.4% C 0.169 H 310.4°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#CA87F7
RGBrgb(202, 135, 247)
HSLhsl(276, 88%, 75%)
HSVhsv(276, 45%, 97%)
CMYKcmyk(18.2%, 45.3%, 0%, 3.1%)
CIE-LABlab(66.98, 45.45, -46.30)
CIE-LCHlch(66.98, 64.88, 314.47°)
OKLaboklab(73.4% 0.1098 -0.1289)
OKLCHoklch(73.4% 0.169 310.4)
XYZxyz(49.8065, 36.6007, 92.4185)
Luminance0.3660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F7 #B4F787
analogous
#9287F7 #CA87F7 #F787EC
triadic
#CA87F7 #F7CA87 #87F7CA
tetradic
#CA87F7 #F79287 #B4F787 #87ECF7
square
#CA87F7 #F79287 #B4F787 #87ECF7
split-complementary
#CA87F7 #ECF787 #87F792
monochromatic
#9714EF #B14EF3 #CA87F7 #E3C0FB #F2E2FD

Accessibility & contrast

On white

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

On black

8.32
#CA87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F7
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F7#FFFFFF#000000##000000
##CA87F71.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA0FB
Deuteranopia (green-blind)
#7FA4F4
Tritanopia (blue-blind)
#C599B3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ca87f7;
/* rgb */ color: rgb(202, 135, 247);
/* oklch */ color: oklch(73.4% 0.169 310.4);
Tailwind
colors: {
  custom: {
    50: '#dcabfa',
    500: '#ca87f7',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f7;
$custom-light: #dcabfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f7",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 275.893,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.73395,
    "c": 0.16929,
    "h": 310.4
  },
  "luminance": 0.366
}

Semantic roles & 50–950 ramp

primary
#CA87F7
secondary
#E2F5D6
accent
#E4015C
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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