#C786F9#C786F9

#C786F9 is a light, vivid violet. Relative luminance 0.360; OKLCH L 73.0% C 0.172 H 308.8°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#C786F9
RGBrgb(199, 134, 249)
HSLhsl(274, 91%, 75%)
HSVhsv(274, 46%, 98%)
CMYKcmyk(20.1%, 46.2%, 0%, 2.4%)
CIE-LABlab(66.54, 45.60, -48.10)
CIE-LCHlch(66.54, 66.27, 313.47°)
OKLaboklab(73.03% 0.1079 -0.1342)
OKLCHoklch(73.03% 0.172 308.8)
XYZxyz(49.1739, 36.0325, 93.9686)
Luminance0.3603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786F9 #B8F986
analogous
#8D86F9 #C786F9 #F986F1
triadic
#C786F9 #F9C786 #86F9C7
tetradic
#C786F9 #F98D86 #B8F986 #86F1F9
square
#C786F9 #F98D86 #B8F986 #86F1F9
split-complementary
#C786F9 #F1F986 #86F98D
monochromatic
#9111F3 #AC4CF6 #C786F9 #E2C0FC #F2E2FE

Accessibility & contrast

On white

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

On black

8.21
#C786F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786F9
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786F9#FFFFFF#000000##000000
##C786F91.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9FFD
Deuteranopia (green-blind)
#7BA3F6
Tritanopia (blue-blind)
#C099B4
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c786f9;
/* rgb */ color: rgb(199, 134, 249);
/* oklch */ color: oklch(73.0% 0.172 308.8);
Tailwind
colors: {
  custom: {
    50: '#daabfc',
    500: '#c786f9',
    950: '#000000',
  },
}
SCSS
$custom: #c786f9;
$custom-light: #daabfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c786f9",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 249
  },
  "hsl": {
    "h": 273.913,
    "s": 90.551,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73032,
    "c": 0.17214,
    "h": 308.8
  },
  "luminance": 0.36032
}

Semantic roles & 50–950 ramp

primary
#C786F9
secondary
#E3F6D5
accent
#E60064
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C786F9

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

Preview Lab → · Contrast checker → · Palette generator →

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