#C786DF#C786DF

#C786DF is a light, vivid purple. Relative luminance 0.345; OKLCH L 71.8% C 0.143 H 316.5°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#C786DF
RGBrgb(199, 134, 223)
HSLhsl(284, 58%, 70%)
HSVhsv(284, 40%, 87%)
CMYKcmyk(10.8%, 39.9%, 0%, 12.5%)
CIE-LABlab(65.37, 40.09, -35.60)
CIE-LCHlch(65.37, 53.61, 318.39°)
OKLaboklab(71.77% 0.1035 -0.0981)
OKLCHoklch(71.77% 0.143 316.5)
XYZxyz(45.3956, 34.5212, 74.0696)
Luminance0.3452 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786DF #9EDF86
analogous
#9A86DF #C786DF #DF86CB
triadic
#C786DF #DFC786 #86DFC7
tetradic
#C786DF #DF9A86 #9EDF86 #86CBDF
square
#C786DF #DF9A86 #9EDF86 #86CBDF
split-complementary
#C786DF #CBDF86 #86DF9A
monochromatic
#9531BA #B156D2 #C786DF #DDB6EC #F4E7F9

Accessibility & contrast

On white

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

On black

7.90
#C786DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786DF
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786DF#FFFFFF#000000##000000
##C786DF1.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#789BE2
Deuteranopia (green-blind)
#88A1DC
Tritanopia (blue-blind)
#C692A8
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #c786df;
/* rgb */ color: rgb(199, 134, 223);
/* oklch */ color: oklch(71.8% 0.143 316.5);
Tailwind
colors: {
  custom: {
    50: '#d9aae9',
    500: '#c786df',
    950: '#000000',
  },
}
SCSS
$custom: #c786df;
$custom-light: #d9aae9;
$custom-dark: #000000;
JSON
{
  "hex": "#c786df",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 223
  },
  "hsl": {
    "h": 283.82,
    "s": 58.17,
    "l": 70
  },
  "oklch": {
    "l": 0.71772,
    "c": 0.1426,
    "h": 316.5
  },
  "luminance": 0.3452
}

Semantic roles & 50–950 ramp

primary
#C786DF
secondary
#DBEDD4
accent
#C6204D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #C786DF

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

Preview Lab → · Contrast checker → · Palette generator →

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