#C787CA#C787CA

#C787CA is a light, moderate purple. Relative luminance 0.337; OKLCH L 71.0% C 0.118 H 325.2°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#C787CA
RGBrgb(199, 135, 202)
HSLhsl(297, 39%, 66%)
HSVhsv(297, 33%, 79%)
CMYKcmyk(1.5%, 33.2%, 0%, 20.8%)
CIE-LABlab(64.75, 35.40, -24.85)
CIE-LCHlch(64.75, 43.25, 324.93°)
OKLaboklab(71.03% 0.0972 -0.0675)
OKLCHoklch(71.03% 0.118 325.2)
XYZxyz(42.8768, 33.7359, 60.1188)
Luminance0.3373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787CA #8ACA87
analogous
#A587CA #C787CA #CA87AB
triadic
#C787CA #CAC787 #87CAC7
tetradic
#C787CA #CAA587 #8ACA87 #87ABCA
square
#C787CA #CAA587 #8ACA87 #87ABCA
split-complementary
#C787CA #ABCA87 #87CAA5
monochromatic
#914295 #B35DB7 #C787CA #DBB1DD #EFDCEF

Accessibility & contrast

On white

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

On black

7.75
#C787CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787CA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787CA#FFFFFF#000000##000000
##C787CA1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8198CD
Deuteranopia (green-blind)
#91A0C8
Tritanopia (blue-blind)
#CA8DA0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #c787ca;
/* rgb */ color: rgb(199, 135, 202);
/* oklch */ color: oklch(71.0% 0.118 325.2);
Tailwind
colors: {
  custom: {
    50: '#d9abda',
    500: '#c787ca',
    950: '#000000',
  },
}
SCSS
$custom: #c787ca;
$custom-light: #d9abda;
$custom-dark: #000000;
JSON
{
  "hex": "#c787ca",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 297.313,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.71025,
    "c": 0.11834,
    "h": 325.2
  },
  "luminance": 0.33734
}

Semantic roles & 50–950 ramp

primary
#C787CA
secondary
#CCE1CB
accent
#B23439
background
#FDFAFD
surface
#FAF4FA
border
#D3CED3
text
#151014
muted
#837F83

Preview Lab

Preview with #C787CA

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

Preview Lab → · Contrast checker → · Palette generator →

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