#C786DC#C786DC

#C786DC is a light, vivid purple. Relative luminance 0.344; OKLCH L 71.6% C 0.139 H 317.6°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#C786DC
RGBrgb(199, 134, 220)
HSLhsl(285, 55%, 69%)
HSVhsv(285, 39%, 86%)
CMYKcmyk(9.5%, 39.1%, 0%, 13.7%)
CIE-LABlab(65.25, 39.48, -34.13)
CIE-LCHlch(65.25, 52.18, 319.16°)
OKLaboklab(71.64% 0.1029 -0.0939)
OKLCHoklch(71.64% 0.139 317.6)
XYZxyz(44.9947, 34.3609, 71.9584)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786DC #9BDC86
analogous
#9C86DC #C786DC #DC86C6
triadic
#C786DC #DCC786 #86DCC7
tetradic
#C786DC #DC9C86 #9BDC86 #86C6DC
square
#C786DC #DC9C86 #9BDC86 #86C6DC
split-complementary
#C786DC #C6DC86 #86DC9C
monochromatic
#9434B4 #B157CE #C786DC #DDB5EA #F3E5F7

Accessibility & contrast

On white

2.67
#C786DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#C786DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786DC
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786DC#FFFFFF#000000##000000
##C786DC1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#799ADF
Deuteranopia (green-blind)
#89A1D9
Tritanopia (blue-blind)
#C791A7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #c786dc;
/* rgb */ color: rgb(199, 134, 220);
/* oklch */ color: oklch(71.6% 0.139 317.6);
Tailwind
colors: {
  custom: {
    50: '#d9aae7',
    500: '#c786dc',
    950: '#000000',
  },
}
SCSS
$custom: #c786dc;
$custom-light: #d9aae7;
$custom-dark: #000000;
JSON
{
  "hex": "#c786dc",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 220
  },
  "hsl": {
    "h": 285.349,
    "s": 55.128,
    "l": 69.412
  },
  "oklch": {
    "l": 0.71635,
    "c": 0.13928,
    "h": 317.6
  },
  "luminance": 0.3436
}

Semantic roles & 50–950 ramp

primary
#C786DC
secondary
#D9EBD3
accent
#C3234A
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #C786DC

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

Preview Lab → · Contrast checker → · Palette generator →

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