#CA81DC#CA81DC

#CA81DC is a light, vivid purple. Relative luminance 0.334; OKLCH L 71.2% C 0.149 H 319.5°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#CA81DC
RGBrgb(202, 129, 220)
HSLhsl(288, 57%, 68%)
HSVhsv(288, 41%, 86%)
CMYKcmyk(8.2%, 41.4%, 0%, 13.7%)
CIE-LABlab(64.50, 43.05, -35.26)
CIE-LCHlch(64.50, 55.65, 320.69°)
OKLaboklab(71.15% 0.1136 -0.097)
OKLCHoklch(71.15% 0.149 319.5)
XYZxyz(45.1240, 33.4258, 71.7711)
Luminance0.3342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA81DC #93DC81
analogous
#9C81DC #CA81DC #DC81C0
triadic
#CA81DC #DCCA81 #81DCCA
tetradic
#CA81DC #DC9C81 #93DC81 #81C0DC
square
#CA81DC #DC9C81 #93DC81 #81C0DC
split-complementary
#CA81DC #C0DC81 #81DC9C
monochromatic
#9831B1 #B651CF #CA81DC #DEB1E9 #F2E1F7

Accessibility & contrast

On white

2.73
#CA81DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#CA81DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA81DC
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA81DC#FFFFFF#000000##000000
##CA81DC1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7497DF
Deuteranopia (green-blind)
#879FD9
Tritanopia (blue-blind)
#CB8CA4
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca81dc;
/* rgb */ color: rgb(202, 129, 220);
/* oklch */ color: oklch(71.2% 0.149 319.5);
Tailwind
colors: {
  custom: {
    50: '#dba7e7',
    500: '#ca81dc',
    950: '#000000',
  },
}
SCSS
$custom: #ca81dc;
$custom-light: #dba7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca81dc",
  "rgb": {
    "r": 202,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 288.132,
    "s": 56.522,
    "l": 68.431
  },
  "oklch": {
    "l": 0.7115,
    "c": 0.14941,
    "h": 319.5
  },
  "luminance": 0.33424
}

Semantic roles & 50–950 ramp

primary
#CA81DC
secondary
#D4EACF
accent
#C42142
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CA81DC

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

Preview Lab → · Contrast checker → · Palette generator →

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