#C787BF#C787BF

#C787BF is a light, moderate purple. Relative luminance 0.332; OKLCH L 70.6% C 0.108 H 331.1°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#C787BF
RGBrgb(199, 135, 191)
HSLhsl(308, 36%, 65%)
HSVhsv(308, 32%, 78%)
CMYKcmyk(0%, 32.2%, 4%, 22%)
CIE-LABlab(64.35, 33.35, -19.29)
CIE-LCHlch(64.35, 38.53, 329.96°)
OKLaboklab(70.59% 0.0942 -0.052)
OKLCHoklch(70.59% 0.108 331.1)
XYZxyz(41.6205, 33.2334, 53.5024)
Luminance0.3323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787BF #87C78F
analogous
#AF87C7 #C787BF #C7879F
triadic
#C787BF #BFC787 #87BFC7
tetradic
#C787BF #C7AF87 #87C78F #879FC7
square
#C787BF #C7AF87 #87C78F #879FC7
split-complementary
#C787BF #9FC787 #87C7AF
monochromatic
#904387 #B45DA9 #C787BF #DAB1D5 #EEDAEC

Accessibility & contrast

On white

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

On black

7.65
#C787BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787BF
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787BF#FFFFFF#000000##000000
##C787BF1.002.757.657.65
#FFFFFF2.751.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8597C1
Deuteranopia (green-blind)
#959FBD
Tritanopia (blue-blind)
#CC8B9B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #c787bf;
/* rgb */ color: rgb(199, 135, 191);
/* oklch */ color: oklch(70.6% 0.108 331.1);
Tailwind
colors: {
  custom: {
    50: '#d9abd2',
    500: '#c787bf',
    950: '#000000',
  },
}
SCSS
$custom: #c787bf;
$custom-light: #d9abd2;
$custom-dark: #000000;
JSON
{
  "hex": "#c787bf",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 191
  },
  "hsl": {
    "h": 307.5,
    "s": 36.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.70587,
    "c": 0.10754,
    "h": 331.1
  },
  "luminance": 0.33232
}

Semantic roles & 50–950 ramp

primary
#C787BF
secondary
#CAE0CD
accent
#AF4536
background
#FDFAFC
surface
#FAF4F9
border
#D3CED2
text
#151014
muted
#837F82

Preview Lab

Preview with #C787BF

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

Preview Lab → · Contrast checker → · Palette generator →

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