#C786EB#C786EB

#C786EB is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.3% C 0.156 H 312.6°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#C786EB
RGBrgb(199, 134, 235)
HSLhsl(279, 72%, 72%)
HSVhsv(279, 43%, 92%)
CMYKcmyk(15.3%, 43%, 0%, 7.8%)
CIE-LABlab(65.90, 42.58, -41.42)
CIE-LCHlch(65.90, 59.40, 315.79°)
OKLaboklab(72.34% 0.1057 -0.1148)
OKLCHoklch(72.34% 0.156 312.6)
XYZxyz(47.0711, 35.1914, 82.8941)
Luminance0.3519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786EB #AAEB86
analogous
#9586EB #C786EB #EB86DC
triadic
#C786EB #EBC786 #86EBC7
tetradic
#C786EB #EB9586 #AAEB86 #86DCEB
square
#C786EB #EB9586 #AAEB86 #86DCEB
split-complementary
#C786EB #DCEB86 #86EB95
monochromatic
#9523D4 #AF51E2 #C786EB #DFBBF4 #F3E5FB

Accessibility & contrast

On white

2.61
#C786EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#C786EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786EB
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786EB#FFFFFF#000000##000000
##C786EB1.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c786eb;
/* rgb */ color: rgb(199, 134, 235);
/* oklch */ color: oklch(72.3% 0.156 312.6);
Tailwind
colors: {
  custom: {
    50: '#d9aaf2',
    500: '#c786eb',
    950: '#000000',
  },
}
SCSS
$custom: #c786eb;
$custom-light: #d9aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#c786eb",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 235
  },
  "hsl": {
    "h": 278.614,
    "s": 71.631,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72336,
    "c": 0.1561,
    "h": 312.6
  },
  "luminance": 0.3519
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C786EB

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

Preview Lab → · Contrast checker → · Palette generator →

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