#C786DD#C786DD

#C786DD is a light, vivid purple. Relative luminance 0.344; OKLCH L 71.7% C 0.140 H 317.3°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#C786DD
RGBrgb(199, 134, 221)
HSLhsl(285, 56%, 70%)
HSVhsv(285, 39%, 87%)
CMYKcmyk(10%, 39.4%, 0%, 13.3%)
CIE-LABlab(65.29, 39.68, -34.62)
CIE-LCHlch(65.29, 52.66, 318.90°)
OKLaboklab(71.68% 0.1031 -0.0953)
OKLCHoklch(71.68% 0.14 317.3)
XYZxyz(45.1276, 34.4140, 72.6579)
Luminance0.3441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786DD #9CDD86
analogous
#9C86DD #C786DD #DD86C7
triadic
#C786DD #DDC786 #86DDC7
tetradic
#C786DD #DD9C86 #9CDD86 #86C7DD
square
#C786DD #DD9C86 #9CDD86 #86C7DD
split-complementary
#C786DD #C7DD86 #86DD9C
monochromatic
#9533B6 #B156D0 #C786DD #DDB6EA #F3E6F8

Accessibility & contrast

On white

2.66
#C786DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#C786DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786DD
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786DD#FFFFFF#000000##000000
##C786DD1.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c786dd;
/* rgb */ color: rgb(199, 134, 221);
/* oklch */ color: oklch(71.7% 0.140 317.3);
Tailwind
colors: {
  custom: {
    50: '#d9aae8',
    500: '#c786dd',
    950: '#000000',
  },
}
SCSS
$custom: #c786dd;
$custom-light: #d9aae8;
$custom-dark: #000000;
JSON
{
  "hex": "#c786dd",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 221
  },
  "hsl": {
    "h": 284.828,
    "s": 56.129,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71681,
    "c": 0.14038,
    "h": 317.3
  },
  "luminance": 0.34413
}

Semantic roles & 50–950 ramp

primary
#C786DD
secondary
#D9ECD3
accent
#C4224B
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #C786DD

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

Preview Lab → · Contrast checker → · Palette generator →

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