#C786EE#C786EE

#C786EE is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.5% C 0.160 H 311.8°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#C786EE
RGBrgb(199, 134, 238)
HSLhsl(278, 75%, 73%)
HSVhsv(278, 44%, 93%)
CMYKcmyk(16.4%, 43.7%, 0%, 6.7%)
CIE-LABlab(66.03, 43.22, -42.86)
CIE-LCHlch(66.03, 60.87, 315.24°)
OKLaboklab(72.48% 0.1062 -0.119)
OKLCHoklch(72.48% 0.16 311.8)
XYZxyz(47.5082, 35.3662, 85.1960)
Luminance0.3537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786EE #ADEE86
analogous
#9386EE #C786EE #EE86E1
triadic
#C786EE #EEC786 #86EEC7
tetradic
#C786EE #EE9386 #ADEE86 #86E1EE
square
#C786EE #EE9386 #ADEE86 #86E1EE
split-complementary
#C786EE #E1EE86 #86EE93
monochromatic
#941FDB #AE50E6 #C786EE #E0BCF6 #F3E4FB

Accessibility & contrast

On white

2.60
#C786EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#C786EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786EE
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786EE#FFFFFF#000000##000000
##C786EE1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#709DF2
Deuteranopia (green-blind)
#81A2EB
Tritanopia (blue-blind)
#C396AF
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #c786ee;
/* rgb */ color: rgb(199, 134, 238);
/* oklch */ color: oklch(72.5% 0.160 311.8);
Tailwind
colors: {
  custom: {
    50: '#daaaf4',
    500: '#c786ee',
    950: '#000000',
  },
}
SCSS
$custom: #c786ee;
$custom-light: #daaaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#c786ee",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 238
  },
  "hsl": {
    "h": 277.5,
    "s": 75.362,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72482,
    "c": 0.15952,
    "h": 311.8
  },
  "luminance": 0.35365
}

Semantic roles & 50–950 ramp

primary
#C786EE
secondary
#E2F3D8
accent
#D80E5A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C786EE

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

Preview Lab → · Contrast checker → · Palette generator →

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