#C787CF#C787CF

#C787CF is a light, vivid purple. Relative luminance 0.340; OKLCH L 71.2% C 0.124 H 322.8°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#C787CF
RGBrgb(199, 135, 207)
HSLhsl(293, 43%, 67%)
HSVhsv(293, 35%, 81%)
CMYKcmyk(3.9%, 34.8%, 0%, 18.8%)
CIE-LABlab(64.94, 36.36, -27.35)
CIE-LCHlch(64.94, 45.50, 323.05°)
OKLaboklab(71.23% 0.0984 -0.0746)
OKLCHoklch(71.23% 0.124 322.8)
XYZxyz(43.4784, 33.9765, 63.2872)
Luminance0.3397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787CF #8FCF87
analogous
#A387CF #C787CF #CF87B3
triadic
#C787CF #CFC787 #87CFC7
tetradic
#C787CF #CFA387 #8FCF87 #87B3CF
square
#C787CF #CFA387 #8FCF87 #87B3CF
split-complementary
#C787CF #B3CF87 #87CFA3
monochromatic
#923F9D #B35BBE #C787CF #DBB3E0 #F0DEF2

Accessibility & contrast

On white

2.69
#C787CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#C787CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787CF
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787CF#FFFFFF#000000##000000
##C787CF1.002.697.797.79
#FFFFFF2.691.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8099D2
Deuteranopia (green-blind)
#8FA0CD
Tritanopia (blue-blind)
#C98FA2
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #c787cf;
/* rgb */ color: rgb(199, 135, 207);
/* oklch */ color: oklch(71.2% 0.124 322.8);
Tailwind
colors: {
  custom: {
    50: '#d9abde',
    500: '#c787cf',
    950: '#000000',
  },
}
SCSS
$custom: #c787cf;
$custom-light: #d9abde;
$custom-dark: #000000;
JSON
{
  "hex": "#c787cf",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 207
  },
  "hsl": {
    "h": 293.333,
    "s": 42.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.71234,
    "c": 0.12352,
    "h": 322.8
  },
  "luminance": 0.33975
}

Semantic roles & 50–950 ramp

primary
#C787CF
secondary
#D0E4CD
accent
#B6303E
background
#FDFAFD
surface
#FBF4FB
border
#D4CED4
text
#151015
muted
#837F83

Preview Lab

Preview with #C787CF

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

Preview Lab → · Contrast checker → · Palette generator →

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