#C786FF#C786FF

#C786FF is a light, vivid violet. Relative luminance 0.364; OKLCH L 73.3% C 0.179 H 307.3°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#C786FF
RGBrgb(199, 134, 255)
HSLhsl(272, 100%, 76%)
HSVhsv(272, 47%, 100%)
CMYKcmyk(22%, 47.5%, 0%, 0%)
CIE-LABlab(66.83, 46.92, -50.92)
CIE-LCHlch(66.83, 69.24, 312.66°)
OKLaboklab(73.34% 0.1086 -0.1424)
OKLCHoklch(73.34% 0.179 307.3)
XYZxyz(50.1247, 36.4128, 98.9761)
Luminance0.3641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786FF #BEFF86
analogous
#8B86FF #C786FF #FF86FB
triadic
#C786FF #FFC786 #86FFC7
tetradic
#C786FF #FF8B86 #BEFF86 #86FBFF
square
#C786FF #FF8B86 #BEFF86 #86FBFF
split-complementary
#C786FF #FBFF86 #86FF8B
monochromatic
#8E0CFF #AB49FF #C786FF #E3C3FF #F1E0FF

Accessibility & contrast

On white

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

On black

8.28
#C786FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786FF
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786FF#FFFFFF#000000##000000
##C786FF1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#66A0FF
Deuteranopia (green-blind)
#78A3FC
Tritanopia (blue-blind)
#BF9AB7
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #c786ff;
/* rgb */ color: rgb(199, 134, 255);
/* oklch */ color: oklch(73.3% 0.179 307.3);
Tailwind
colors: {
  custom: {
    50: '#daabff',
    500: '#c786ff',
    950: '#000000',
  },
}
SCSS
$custom: #c786ff;
$custom-light: #daabff;
$custom-dark: #000000;
JSON
{
  "hex": "#c786ff",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 255
  },
  "hsl": {
    "h": 272.231,
    "s": 100,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73342,
    "c": 0.17907,
    "h": 307.3
  },
  "luminance": 0.36412
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C786FF

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

Preview Lab → · Contrast checker → · Palette generator →

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