#C787BD#C787BD

#C787BD is a light, moderate purple. Relative luminance 0.331; OKLCH L 70.5% C 0.106 H 332.3°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#C787BD
RGBrgb(199, 135, 189)
HSLhsl(309, 36%, 65%)
HSVhsv(309, 32%, 78%)
CMYKcmyk(0%, 32.2%, 5%, 22%)
CIE-LABlab(64.28, 32.99, -18.27)
CIE-LCHlch(64.28, 37.71, 331.02°)
OKLaboklab(70.51% 0.0936 -0.0491)
OKLCHoklch(70.51% 0.106 332.3)
XYZxyz(41.4019, 33.1459, 52.3512)
Luminance0.3314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787BD #87C791
analogous
#B187C7 #C787BD #C7879D
triadic
#C787BD #BDC787 #87BDC7
tetradic
#C787BD #C7B187 #87C791 #879DC7
square
#C787BD #C7B187 #87C791 #879DC7
split-complementary
#C787BD #9DC787 #87C7B1
monochromatic
#904384 #B45DA6 #C787BD #DAB1D4 #EEDAEB

Accessibility & contrast

On white

2.75
#C787BD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#C787BD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787BD
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787BD#FFFFFF#000000##000000
##C787BD1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8696BF
Deuteranopia (green-blind)
#959FBB
Tritanopia (blue-blind)
#CD8A9A
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #c787bd;
/* rgb */ color: rgb(199, 135, 189);
/* oklch */ color: oklch(70.5% 0.106 332.3);
Tailwind
colors: {
  custom: {
    50: '#d9abd1',
    500: '#c787bd',
    950: '#000000',
  },
}
SCSS
$custom: #c787bd;
$custom-light: #d9abd1;
$custom-dark: #000000;
JSON
{
  "hex": "#c787bd",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 189
  },
  "hsl": {
    "h": 309.375,
    "s": 36.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.7051,
    "c": 0.10567,
    "h": 332.3
  },
  "luminance": 0.33144
}

Semantic roles & 50–950 ramp

primary
#C787BD
secondary
#CAE0CE
accent
#AF4936
background
#FDFAFC
surface
#FAF4F9
border
#D3CED2
text
#151014
muted
#837F82

Preview Lab

Preview with #C787BD

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

Preview Lab → · Contrast checker → · Palette generator →

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