#C787CB#C787CB

#C787CB is a light, moderate purple. Relative luminance 0.338; OKLCH L 71.1% C 0.119 H 324.7°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#C787CB
RGBrgb(199, 135, 203)
HSLhsl(296, 40%, 66%)
HSVhsv(296, 33%, 80%)
CMYKcmyk(2%, 33.5%, 0%, 20.4%)
CIE-LABlab(64.79, 35.59, -25.35)
CIE-LCHlch(64.79, 43.70, 324.54°)
OKLaboklab(71.07% 0.0974 -0.0689)
OKLCHoklch(71.07% 0.119 324.7)
XYZxyz(42.9956, 33.7834, 60.7443)
Luminance0.3378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787CB #8BCB87
analogous
#A587CB #C787CB #CB87AD
triadic
#C787CB #CBC787 #87CBC7
tetradic
#C787CB #CBA587 #8BCB87 #87ADCB
square
#C787CB #CBA587 #8BCB87 #87ADCB
split-complementary
#C787CB #ADCB87 #87CBA5
monochromatic
#914196 #B35CB8 #C787CB #DBB2DE #EFDCF0

Accessibility & contrast

On white

2.71
#C787CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#C787CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787CB
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787CB#FFFFFF#000000##000000
##C787CB1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8198CE
Deuteranopia (green-blind)
#91A0C9
Tritanopia (blue-blind)
#CA8EA0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #c787cb;
/* rgb */ color: rgb(199, 135, 203);
/* oklch */ color: oklch(71.1% 0.119 324.7);
Tailwind
colors: {
  custom: {
    50: '#d9abdb',
    500: '#c787cb',
    950: '#000000',
  },
}
SCSS
$custom: #c787cb;
$custom-light: #d9abdb;
$custom-dark: #000000;
JSON
{
  "hex": "#c787cb",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 296.471,
    "s": 39.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.71067,
    "c": 0.11936,
    "h": 324.7
  },
  "luminance": 0.33782
}

Semantic roles & 50–950 ramp

primary
#C787CB
secondary
#CDE2CC
accent
#B3333A
background
#FDFAFD
surface
#FAF4FB
border
#D3CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #C787CB

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

Preview Lab → · Contrast checker → · Palette generator →

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