#C787DC#C787DC

#C787DC is a light, vivid purple. Relative luminance 0.346; OKLCH L 71.8% C 0.138 H 317.5°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#C787DC
RGBrgb(199, 135, 220)
HSLhsl(285, 55%, 70%)
HSVhsv(285, 39%, 86%)
CMYKcmyk(9.5%, 38.6%, 0%, 13.7%)
CIE-LABlab(65.47, 38.94, -33.79)
CIE-LCHlch(65.47, 51.55, 319.05°)
OKLaboklab(71.8% 0.1014 -0.0929)
OKLCHoklch(71.8% 0.138 317.5)
XYZxyz(45.1336, 34.6386, 72.0047)
Luminance0.3464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787DC #9CDC87
analogous
#9C87DC #C787DC #DC87C7
triadic
#C787DC #DCC787 #87DCC7
tetradic
#C787DC #DC9C87 #9CDC87 #87C7DC
square
#C787DC #DC9C87 #9CDC87 #87C7DC
split-complementary
#C787DC #C7DC87 #87DC9C
monochromatic
#9535B4 #B158CE #C787DC #DDB6EA #F3E6F8

Accessibility & contrast

On white

2.65
#C787DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#C787DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787DC
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787DC#FFFFFF#000000##000000
##C787DC1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A9BDF
Deuteranopia (green-blind)
#8AA1D9
Tritanopia (blue-blind)
#C792A7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #c787dc;
/* rgb */ color: rgb(199, 135, 220);
/* oklch */ color: oklch(71.8% 0.138 317.5);
Tailwind
colors: {
  custom: {
    50: '#d9abe7',
    500: '#c787dc',
    950: '#000000',
  },
}
SCSS
$custom: #c787dc;
$custom-light: #d9abe7;
$custom-dark: #000000;
JSON
{
  "hex": "#c787dc",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 285.176,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.718,
    "c": 0.13757,
    "h": 317.5
  },
  "luminance": 0.34637
}

Semantic roles & 50–950 ramp

primary
#C787DC
secondary
#D9ECD3
accent
#C2234A
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #C787DC

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

Preview Lab → · Contrast checker → · Palette generator →

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