#C787DB#C787DB

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

Color values

HEX#C787DB
RGBrgb(199, 135, 219)
HSLhsl(286, 54%, 69%)
HSVhsv(286, 38%, 86%)
CMYKcmyk(9.1%, 38.4%, 0%, 14.1%)
CIE-LABlab(65.42, 38.73, -33.30)
CIE-LCHlch(65.42, 51.08, 319.32°)
OKLaboklab(71.76% 0.1012 -0.0915)
OKLCHoklch(71.76% 0.136 317.9)
XYZxyz(45.0016, 34.5858, 71.3092)
Luminance0.3458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787DB #9BDB87
analogous
#9D87DB #C787DB #DB87C5
triadic
#C787DB #DBC787 #87DBC7
tetradic
#C787DB #DB9D87 #9BDB87 #87C5DB
square
#C787DB #DB9D87 #9BDB87 #87C5DB
split-complementary
#C787DB #C5DB87 #87DB9D
monochromatic
#9435B2 #B158CD #C787DB #DDB6E9 #F3E5F7

Accessibility & contrast

On white

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

On black

7.92
#C787DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787DB
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787DB#FFFFFF#000000##000000
##C787DB1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c787db;
/* rgb */ color: rgb(199, 135, 219);
/* oklch */ color: oklch(71.8% 0.136 317.9);
Tailwind
colors: {
  custom: {
    50: '#d9abe6',
    500: '#c787db',
    950: '#000000',
  },
}
SCSS
$custom: #c787db;
$custom-light: #d9abe6;
$custom-dark: #000000;
JSON
{
  "hex": "#c787db",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 285.714,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.71755,
    "c": 0.13645,
    "h": 317.9
  },
  "luminance": 0.34585
}

Semantic roles & 50–950 ramp

primary
#C787DB
secondary
#D9EBD3
accent
#C1244A
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #C787DB

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

Preview Lab → · Contrast checker → · Palette generator →

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