#CA87F6#CA87F6

#CA87F6 is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.3% C 0.168 H 310.7°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#CA87F6
RGBrgb(202, 135, 246)
HSLhsl(276, 86%, 75%)
HSVhsv(276, 45%, 96%)
CMYKcmyk(17.9%, 45.1%, 0%, 3.5%)
CIE-LABlab(66.93, 45.23, -45.83)
CIE-LCHlch(66.93, 64.39, 314.63°)
OKLaboklab(73.35% 0.1096 -0.1275)
OKLCHoklch(73.35% 0.168 310.7)
XYZxyz(49.6526, 36.5392, 91.6080)
Luminance0.3654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F6 #B3F687
analogous
#9287F6 #CA87F6 #F687EB
triadic
#CA87F6 #F6CA87 #87F6CA
tetradic
#CA87F6 #F69287 #B3F687 #87EBF6
square
#CA87F6 #F69287 #B3F687 #87EBF6
split-complementary
#CA87F6 #EBF687 #87F692
monochromatic
#9815ED #B14EF2 #CA87F6 #E3C0FA #F2E3FD

Accessibility & contrast

On white

2.53
#CA87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#CA87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F6
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F6#FFFFFF#000000##000000
##CA87F61.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA0FA
Deuteranopia (green-blind)
#80A4F3
Tritanopia (blue-blind)
#C598B3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ca87f6;
/* rgb */ color: rgb(202, 135, 246);
/* oklch */ color: oklch(73.3% 0.168 310.7);
Tailwind
colors: {
  custom: {
    50: '#dcabf9',
    500: '#ca87f6',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f6;
$custom-light: #dcabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f6",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 276.216,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.73345,
    "c": 0.16815,
    "h": 310.7
  },
  "luminance": 0.36538
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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