#C786DB#C786DB

#C786DB is a light, vivid purple. Relative luminance 0.343; OKLCH L 71.6% C 0.138 H 318.0°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#C786DB
RGBrgb(199, 134, 219)
HSLhsl(286, 54%, 69%)
HSVhsv(286, 39%, 86%)
CMYKcmyk(9.1%, 38.8%, 0%, 14.1%)
CIE-LABlab(65.21, 39.27, -33.64)
CIE-LCHlch(65.21, 51.71, 319.42°)
OKLaboklab(71.59% 0.1027 -0.0925)
OKLCHoklch(71.59% 0.138 318)
XYZxyz(44.8627, 34.3080, 71.2630)
Luminance0.3431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786DB #9ADB86
analogous
#9D86DB #C786DB #DB86C5
triadic
#C786DB #DBC786 #86DBC7
tetradic
#C786DB #DB9D86 #9ADB86 #86C5DB
square
#C786DB #DB9D86 #9ADB86 #86C5DB
split-complementary
#C786DB #C5DB86 #86DB9D
monochromatic
#9435B2 #B157CD #C786DB #DDB5E9 #F3E4F7

Accessibility & contrast

On white

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

On black

7.86
#C786DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786DB
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786DB#FFFFFF#000000##000000
##C786DB1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#799ADE
Deuteranopia (green-blind)
#8AA0D8
Tritanopia (blue-blind)
#C791A6
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #c786db;
/* rgb */ color: rgb(199, 134, 219);
/* oklch */ color: oklch(71.6% 0.138 318.0);
Tailwind
colors: {
  custom: {
    50: '#d9aae6',
    500: '#c786db',
    950: '#000000',
  },
}
SCSS
$custom: #c786db;
$custom-light: #d9aae6;
$custom-dark: #000000;
JSON
{
  "hex": "#c786db",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 219
  },
  "hsl": {
    "h": 285.882,
    "s": 54.14,
    "l": 69.216
  },
  "oklch": {
    "l": 0.7159,
    "c": 0.13818,
    "h": 318
  },
  "luminance": 0.34307
}

Semantic roles & 50–950 ramp

primary
#C786DB
secondary
#D8EBD2
accent
#C22449
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #C786DB

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

Preview Lab → · Contrast checker → · Palette generator →

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