#C786EF#C786EF

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

Color values

HEX#C786EF
RGBrgb(199, 134, 239)
HSLhsl(277, 77%, 73%)
HSVhsv(277, 44%, 94%)
CMYKcmyk(16.7%, 43.9%, 0%, 6.3%)
CIE-LABlab(66.08, 43.43, -43.34)
CIE-LCHlch(66.08, 61.36, 315.06°)
OKLaboklab(72.53% 0.1064 -0.1204)
OKLCHoklch(72.53% 0.161 311.5)
XYZxyz(47.6555, 35.4252, 85.9719)
Luminance0.3542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786EF #AEEF86
analogous
#9286EF #C786EF #EF86E2
triadic
#C786EF #EFC786 #86EFC7
tetradic
#C786EF #EF9286 #AEEF86 #86E2EF
square
#C786EF #EF9286 #AEEF86 #86E2EF
split-complementary
#C786EF #E2EF86 #86EF92
monochromatic
#941DDD #AE50E8 #C786EF #E0BCF6 #F2E4FB

Accessibility & contrast

On white

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

On black

8.08
#C786EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786EF
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786EF#FFFFFF#000000##000000
##C786EF1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#709DF3
Deuteranopia (green-blind)
#81A2EC
Tritanopia (blue-blind)
#C396AF
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #c786ef;
/* rgb */ color: rgb(199, 134, 239);
/* oklch */ color: oklch(72.5% 0.161 311.5);
Tailwind
colors: {
  custom: {
    50: '#daaaf4',
    500: '#c786ef',
    950: '#000000',
  },
}
SCSS
$custom: #c786ef;
$custom-light: #daaaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#c786ef",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 239
  },
  "hsl": {
    "h": 277.143,
    "s": 76.642,
    "l": 73.137
  },
  "oklch": {
    "l": 0.72531,
    "c": 0.16066,
    "h": 311.5
  },
  "luminance": 0.35424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C786EF

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

Preview Lab → · Contrast checker → · Palette generator →

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