#C787BE#C787BE

#C787BE is a light, moderate purple. Relative luminance 0.332; OKLCH L 70.5% C 0.107 H 331.7°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#C787BE
RGBrgb(199, 135, 190)
HSLhsl(308, 36%, 65%)
HSVhsv(308, 32%, 78%)
CMYKcmyk(0%, 32.2%, 4.5%, 22%)
CIE-LABlab(64.31, 33.17, -18.78)
CIE-LCHlch(64.31, 38.12, 330.48°)
OKLaboklab(70.55% 0.0939 -0.0505)
OKLCHoklch(70.55% 0.107 331.7)
XYZxyz(41.5108, 33.1895, 52.9248)
Luminance0.3319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787BE #87C790
analogous
#B087C7 #C787BE #C7879E
triadic
#C787BE #BEC787 #87BEC7
tetradic
#C787BE #C7B087 #87C790 #879EC7
square
#C787BE #C7B087 #87C790 #879EC7
split-complementary
#C787BE #9EC787 #87C7B0
monochromatic
#904385 #B45DA7 #C787BE #DAB1D5 #EEDAEB

Accessibility & contrast

On white

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

On black

7.64
#C787BE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787BE
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787BE#FFFFFF#000000##000000
##C787BE1.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8696C0
Deuteranopia (green-blind)
#959FBC
Tritanopia (blue-blind)
#CC8B9B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #c787be;
/* rgb */ color: rgb(199, 135, 190);
/* oklch */ color: oklch(70.5% 0.107 331.7);
Tailwind
colors: {
  custom: {
    50: '#d9abd1',
    500: '#c787be',
    950: '#000000',
  },
}
SCSS
$custom: #c787be;
$custom-light: #d9abd1;
$custom-dark: #000000;
JSON
{
  "hex": "#c787be",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 190
  },
  "hsl": {
    "h": 308.438,
    "s": 36.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.70548,
    "c": 0.1066,
    "h": 331.7
  },
  "luminance": 0.33188
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C787BE

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

Preview Lab → · Contrast checker → · Palette generator →

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