#C787CD#C787CD

#C787CD is a light, vivid purple. Relative luminance 0.339; OKLCH L 71.2% C 0.121 H 323.8°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#C787CD
RGBrgb(199, 135, 205)
HSLhsl(295, 41%, 67%)
HSVhsv(295, 34%, 80%)
CMYKcmyk(2.9%, 34.1%, 0%, 19.6%)
CIE-LABlab(64.87, 35.97, -26.35)
CIE-LCHlch(64.87, 44.59, 323.78°)
OKLaboklab(71.15% 0.0979 -0.0718)
OKLCHoklch(71.15% 0.121 323.8)
XYZxyz(43.2354, 33.8793, 62.0076)
Luminance0.3388 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787CD #8DCD87
analogous
#A487CD #C787CD #CD87B0
triadic
#C787CD #CDC787 #87CDC7
tetradic
#C787CD #CDA487 #8DCD87 #87B0CD
square
#C787CD #CDA487 #8DCD87 #87B0CD
split-complementary
#C787CD #B0CD87 #87CDA4
monochromatic
#92409A #B35CBB #C787CD #DBB2DF #EFDDF1

Accessibility & contrast

On white

2.70
#C787CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#C787CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787CD
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787CD#FFFFFF#000000##000000
##C787CD1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8099D0
Deuteranopia (green-blind)
#90A0CB
Tritanopia (blue-blind)
#CA8EA1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #c787cd;
/* rgb */ color: rgb(199, 135, 205);
/* oklch */ color: oklch(71.2% 0.121 323.8);
Tailwind
colors: {
  custom: {
    50: '#d9abdc',
    500: '#c787cd',
    950: '#000000',
  },
}
SCSS
$custom: #c787cd;
$custom-light: #d9abdc;
$custom-dark: #000000;
JSON
{
  "hex": "#c787cd",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 205
  },
  "hsl": {
    "h": 294.857,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.7115,
    "c": 0.12143,
    "h": 323.8
  },
  "luminance": 0.33878
}

Semantic roles & 50–950 ramp

primary
#C787CD
secondary
#CFE3CD
accent
#B4313D
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #C787CD

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

Preview Lab → · Contrast checker → · Palette generator →

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