#C786FE#C786FE

#C786FE is a light, vivid violet. Relative luminance 0.363; OKLCH L 73.3% C 0.178 H 307.6°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#C786FE
RGBrgb(199, 134, 254)
HSLhsl(273, 98%, 76%)
HSVhsv(273, 47%, 100%)
CMYKcmyk(21.7%, 47.2%, 0%, 0.4%)
CIE-LABlab(66.79, 46.70, -50.45)
CIE-LCHlch(66.79, 68.75, 312.79°)
OKLaboklab(73.29% 0.1085 -0.141)
OKLCHoklch(73.29% 0.178 307.6)
XYZxyz(49.9641, 36.3486, 98.1306)
Luminance0.3635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786FE #BDFE86
analogous
#8B86FE #C786FE #FE86F9
triadic
#C786FE #FEC786 #86FEC7
tetradic
#C786FE #FE8B86 #BDFE86 #86F9FE
square
#C786FE #FE8B86 #BDFE86 #86F9FE
split-complementary
#C786FE #F9FE86 #86FE8B
monochromatic
#8F0DFD #AB49FD #C786FE #E3C3FF #F1E1FF

Accessibility & contrast

On white

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

On black

8.27
#C786FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786FE
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786FE#FFFFFF#000000##000000
##C786FE1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c786fe;
/* rgb */ color: rgb(199, 134, 254);
/* oklch */ color: oklch(73.3% 0.178 307.6);
Tailwind
colors: {
  custom: {
    50: '#daabff',
    500: '#c786fe',
    950: '#000000',
  },
}
SCSS
$custom: #c786fe;
$custom-light: #daabff;
$custom-dark: #000000;
JSON
{
  "hex": "#c786fe",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 254
  },
  "hsl": {
    "h": 272.5,
    "s": 98.361,
    "l": 76.078
  },
  "oklch": {
    "l": 0.7329,
    "c": 0.17792,
    "h": 307.6
  },
  "luminance": 0.36348
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C786FE

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

Preview Lab → · Contrast checker → · Palette generator →

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