#C787DF#C787DF

#C787DF is a light, vivid purple. Relative luminance 0.348; OKLCH L 71.9% C 0.141 H 316.4°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#C787DF
RGBrgb(199, 135, 223)
HSLhsl(284, 58%, 70%)
HSVhsv(284, 39%, 87%)
CMYKcmyk(10.8%, 39.5%, 0%, 12.5%)
CIE-LABlab(65.59, 39.55, -35.26)
CIE-LCHlch(65.59, 52.98, 318.28°)
OKLaboklab(71.94% 0.1021 -0.0971)
OKLCHoklch(71.94% 0.141 316.4)
XYZxyz(45.5345, 34.7989, 74.1159)
Luminance0.3480 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787DF #9FDF87
analogous
#9B87DF #C787DF #DF87CB
triadic
#C787DF #DFC787 #87DFC7
tetradic
#C787DF #DF9B87 #9FDF87 #87CBDF
square
#C787DF #DF9B87 #9FDF87 #87CBDF
split-complementary
#C787DF #CBDF87 #87DF9B
monochromatic
#9532BA #B057D2 #C787DF #DEB7EC #F4E7F9

Accessibility & contrast

On white

2.64
#C787DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#C787DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787DF
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787DF#FFFFFF#000000##000000
##C787DF1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#799BE2
Deuteranopia (green-blind)
#89A1DC
Tritanopia (blue-blind)
#C693A9
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #c787df;
/* rgb */ color: rgb(199, 135, 223);
/* oklch */ color: oklch(71.9% 0.141 316.4);
Tailwind
colors: {
  custom: {
    50: '#d9abe9',
    500: '#c787df',
    950: '#000000',
  },
}
SCSS
$custom: #c787df;
$custom-light: #d9abe9;
$custom-dark: #000000;
JSON
{
  "hex": "#c787df",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 283.636,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.71936,
    "c": 0.14089,
    "h": 316.4
  },
  "luminance": 0.34798
}

Semantic roles & 50–950 ramp

primary
#C787DF
secondary
#DBEDD5
accent
#C5204D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #C787DF

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

Preview Lab → · Contrast checker → · Palette generator →

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