#C786FC#C786FC

#C786FC is a light, vivid violet. Relative luminance 0.362; OKLCH L 73.2% C 0.176 H 308.1°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#C786FC
RGBrgb(199, 134, 252)
HSLhsl(273, 95%, 76%)
HSVhsv(273, 47%, 99%)
CMYKcmyk(21%, 46.8%, 0%, 1.2%)
CIE-LABlab(66.69, 46.25, -49.51)
CIE-LCHlch(66.69, 67.76, 313.05°)
OKLaboklab(73.19% 0.1083 -0.1383)
OKLCHoklch(73.19% 0.176 308.1)
XYZxyz(49.6455, 36.2212, 96.4526)
Luminance0.3622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786FC #BBFC86
analogous
#8C86FC #C786FC #FC86F6
triadic
#C786FC #FCC786 #86FCC7
tetradic
#C786FC #FC8C86 #BBFC86 #86F6FC
square
#C786FC #FC8C86 #BBFC86 #86F6FC
split-complementary
#C786FC #F6FC86 #86FC8C
monochromatic
#900FF9 #AB4AFB #C786FC #E3C2FD #F1E1FE

Accessibility & contrast

On white

2.55
#C786FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#C786FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786FC
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786FC#FFFFFF#000000##000000
##C786FC1.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#68A0FF
Deuteranopia (green-blind)
#7AA3F9
Tritanopia (blue-blind)
#C099B5
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c786fc;
/* rgb */ color: rgb(199, 134, 252);
/* oklch */ color: oklch(73.2% 0.176 308.1);
Tailwind
colors: {
  custom: {
    50: '#daabfe',
    500: '#c786fc',
    950: '#000000',
  },
}
SCSS
$custom: #c786fc;
$custom-light: #daabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#c786fc",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 252
  },
  "hsl": {
    "h": 273.051,
    "s": 95.161,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73186,
    "c": 0.17561,
    "h": 308.1
  },
  "luminance": 0.36221
}

Semantic roles & 50–950 ramp

primary
#C786FC
secondary
#E4F6D5
accent
#E60067
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #C786FC

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

Preview Lab → · Contrast checker → · Palette generator →

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