#CA87F4#CA87F4

#CA87F4 is a light, vivid violet. Relative luminance 0.364; OKLCH L 73.2% C 0.166 H 311.2°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#CA87F4
RGBrgb(202, 135, 244)
HSLhsl(277, 83%, 74%)
HSVhsv(277, 45%, 96%)
CMYKcmyk(17.2%, 44.7%, 0%, 4.3%)
CIE-LABlab(66.84, 44.81, -44.87)
CIE-LCHlch(66.84, 63.41, 314.96°)
OKLaboklab(73.25% 0.1093 -0.1248)
OKLCHoklch(73.25% 0.166 311.2)
XYZxyz(49.3473, 36.4170, 90.0000)
Luminance0.3642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87F4 #B1F487
analogous
#9487F4 #CA87F4 #F487E7
triadic
#CA87F4 #F4CA87 #87F4CA
tetradic
#CA87F4 #F49487 #B1F487 #87E7F4
square
#CA87F4 #F49487 #B1F487 #87E7F4
split-complementary
#CA87F4 #E7F487 #87F494
monochromatic
#9817EA #B14FEF #CA87F4 #E3BFF9 #F3E3FC

Accessibility & contrast

On white

2.54
#CA87F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#CA87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87F4
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87F4#FFFFFF#000000##000000
##CA87F41.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9FF8
Deuteranopia (green-blind)
#81A4F1
Tritanopia (blue-blind)
#C598B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ca87f4;
/* rgb */ color: rgb(202, 135, 244);
/* oklch */ color: oklch(73.2% 0.166 311.2);
Tailwind
colors: {
  custom: {
    50: '#dcabf8',
    500: '#ca87f4',
    950: '#000000',
  },
}
SCSS
$custom: #ca87f4;
$custom-light: #dcabf8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87f4",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 276.881,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73246,
    "c": 0.16587,
    "h": 311.2
  },
  "luminance": 0.36416
}

Semantic roles & 50–950 ramp

primary
#CA87F4
secondary
#E2F4D7
accent
#E0065A
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CA87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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