#C786FA#C786FA

#C786FA is a light, vivid violet. Relative luminance 0.361; OKLCH L 73.1% C 0.173 H 308.5°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#C786FA
RGBrgb(199, 134, 250)
HSLhsl(274, 92%, 75%)
HSVhsv(274, 46%, 98%)
CMYKcmyk(20.4%, 46.4%, 0%, 2%)
CIE-LABlab(66.59, 45.81, -48.57)
CIE-LCHlch(66.59, 66.77, 313.33°)
OKLaboklab(73.08% 0.108 -0.1355)
OKLCHoklch(73.08% 0.173 308.5)
XYZxyz(49.3303, 36.0951, 94.7923)
Luminance0.3609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786FA #B9FA86
analogous
#8D86FA #C786FA #FA86F3
triadic
#C786FA #FAC786 #86FAC7
tetradic
#C786FA #FA8D86 #B9FA86 #86F3FA
square
#C786FA #FA8D86 #B9FA86 #86F3FA
split-complementary
#C786FA #F3FA86 #86FA8D
monochromatic
#9110F5 #AC4BF8 #C786FA #E2C1FC #F1E2FE

Accessibility & contrast

On white

2.56
#C786FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#C786FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786FA
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786FA#FFFFFF#000000##000000
##C786FA1.002.568.228.22
#FFFFFF2.561.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#699FFE
Deuteranopia (green-blind)
#7BA3F7
Tritanopia (blue-blind)
#C099B4
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c786fa;
/* rgb */ color: rgb(199, 134, 250);
/* oklch */ color: oklch(73.1% 0.173 308.5);
Tailwind
colors: {
  custom: {
    50: '#daabfc',
    500: '#c786fa',
    950: '#000000',
  },
}
SCSS
$custom: #c786fa;
$custom-light: #daabfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c786fa",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 250
  },
  "hsl": {
    "h": 273.621,
    "s": 92.063,
    "l": 75.294
  },
  "oklch": {
    "l": 0.73083,
    "c": 0.1733,
    "h": 308.5
  },
  "luminance": 0.36094
}

Semantic roles & 50–950 ramp

primary
#C786FA
secondary
#E4F6D5
accent
#E60065
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C786FA

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

Preview Lab → · Contrast checker → · Palette generator →

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