#C786FD#C786FD

#C786FD is a light, vivid violet. Relative luminance 0.363; OKLCH L 73.2% C 0.177 H 307.8°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#C786FD
RGBrgb(199, 134, 253)
HSLhsl(273, 97%, 76%)
HSVhsv(273, 47%, 99%)
CMYKcmyk(21.3%, 47%, 0%, 0.8%)
CIE-LABlab(66.74, 46.48, -49.98)
CIE-LCHlch(66.74, 68.25, 312.92°)
OKLaboklab(73.24% 0.1084 -0.1396)
OKLCHoklch(73.24% 0.177 307.8)
XYZxyz(49.8044, 36.2847, 97.2894)
Luminance0.3628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786FD #BCFD86
analogous
#8B86FD #C786FD #FD86F8
triadic
#C786FD #FDC786 #86FDC7
tetradic
#C786FD #FD8B86 #BCFD86 #86F8FD
square
#C786FD #FD8B86 #BCFD86 #86F8FD
split-complementary
#C786FD #F8FD86 #86FD8B
monochromatic
#8F0EFB #AB4AFC #C786FD #E3C2FE #F1E1FF

Accessibility & contrast

On white

2.54
#C786FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#C786FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786FD
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786FD#FFFFFF#000000##000000
##C786FD1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#67A0FF
Deuteranopia (green-blind)
#79A3FA
Tritanopia (blue-blind)
#BF9AB6
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c786fd;
/* rgb */ color: rgb(199, 134, 253);
/* oklch */ color: oklch(73.2% 0.177 307.8);
Tailwind
colors: {
  custom: {
    50: '#daabfe',
    500: '#c786fd',
    950: '#000000',
  },
}
SCSS
$custom: #c786fd;
$custom-light: #daabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#c786fd",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 253
  },
  "hsl": {
    "h": 272.773,
    "s": 96.748,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73238,
    "c": 0.17676,
    "h": 307.8
  },
  "luminance": 0.36284
}

Semantic roles & 50–950 ramp

primary
#C786FD
secondary
#E4F7D4
accent
#E60068
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #C786FD

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

Preview Lab → · Contrast checker → · Palette generator →

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