#C786EA#C786EA

#C786EA is a light, vivid violet. Relative luminance 0.351; OKLCH L 72.3% C 0.155 H 312.9°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#C786EA
RGBrgb(199, 134, 234)
HSLhsl(279, 70%, 72%)
HSVhsv(279, 43%, 92%)
CMYKcmyk(15%, 42.7%, 0%, 8.2%)
CIE-LABlab(65.85, 42.37, -40.94)
CIE-LCHlch(65.85, 58.92, 315.99°)
OKLaboklab(72.29% 0.1056 -0.1134)
OKLCHoklch(72.29% 0.155 312.9)
XYZxyz(46.9271, 35.1338, 82.1354)
Luminance0.3513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786EA #A9EA86
analogous
#9586EA #C786EA #EA86DB
triadic
#C786EA #EAC786 #86EAC7
tetradic
#C786EA #EA9586 #A9EA86 #86DBEA
square
#C786EA #EA9586 #A9EA86 #86DBEA
split-complementary
#C786EA #DBEA86 #86EA95
monochromatic
#9524D1 #AF52E1 #C786EA #DFBAF3 #F3E5FA

Accessibility & contrast

On white

2.62
#C786EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#C786EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786EA
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786EA#FFFFFF#000000##000000
##C786EA1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#729CEE
Deuteranopia (green-blind)
#83A2E7
Tritanopia (blue-blind)
#C495AD
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #c786ea;
/* rgb */ color: rgb(199, 134, 234);
/* oklch */ color: oklch(72.3% 0.155 312.9);
Tailwind
colors: {
  custom: {
    50: '#d9aaf1',
    500: '#c786ea',
    950: '#000000',
  },
}
SCSS
$custom: #c786ea;
$custom-light: #d9aaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#c786ea",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 234
  },
  "hsl": {
    "h": 279,
    "s": 70.423,
    "l": 72.157
  },
  "oklch": {
    "l": 0.72288,
    "c": 0.15496,
    "h": 312.9
  },
  "luminance": 0.35133
}

Semantic roles & 50–950 ramp

primary
#C786EA
secondary
#E2F2D9
accent
#D21356
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C786EA

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

Preview Lab → · Contrast checker → · Palette generator →

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