#C787DA#C787DA

#C787DA is a light, vivid purple. Relative luminance 0.345; OKLCH L 71.7% C 0.135 H 318.3°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#C787DA
RGBrgb(199, 135, 218)
HSLhsl(286, 53%, 69%)
HSVhsv(286, 38%, 85%)
CMYKcmyk(8.7%, 38.1%, 0%, 14.5%)
CIE-LABlab(65.38, 38.53, -32.80)
CIE-LCHlch(65.38, 50.60, 319.59°)
OKLaboklab(71.71% 0.101 -0.0901)
OKLCHoklch(71.71% 0.135 318.3)
XYZxyz(44.8703, 34.5333, 70.6180)
Luminance0.3453 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787DA #9ADA87
analogous
#9E87DA #C787DA #DA87C4
triadic
#C787DA #DAC787 #87DAC7
tetradic
#C787DA #DA9E87 #9ADA87 #87C4DA
square
#C787DA #DA9E87 #9ADA87 #87C4DA
split-complementary
#C787DA #C4DA87 #87DA9E
monochromatic
#9436B0 #B158CC #C787DA #DDB6E8 #F3E5F7

Accessibility & contrast

On white

2.66
#C787DA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#C787DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787DA
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787DA#FFFFFF#000000##000000
##C787DA1.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B9BDD
Deuteranopia (green-blind)
#8BA1D7
Tritanopia (blue-blind)
#C791A6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #c787da;
/* rgb */ color: rgb(199, 135, 218);
/* oklch */ color: oklch(71.7% 0.135 318.3);
Tailwind
colors: {
  custom: {
    50: '#d9abe5',
    500: '#c787da',
    950: '#000000',
  },
}
SCSS
$custom: #c787da;
$custom-light: #d9abe5;
$custom-dark: #000000;
JSON
{
  "hex": "#c787da",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 218
  },
  "hsl": {
    "h": 286.265,
    "s": 52.866,
    "l": 69.216
  },
  "oklch": {
    "l": 0.7171,
    "c": 0.13536,
    "h": 318.3
  },
  "luminance": 0.34532
}

Semantic roles & 50–950 ramp

primary
#C787DA
secondary
#D8EAD2
accent
#C02549
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #C787DA

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

Preview Lab → · Contrast checker → · Palette generator →

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