#C786FB#C786FB

#C786FB is a light, vivid violet. Relative luminance 0.362; OKLCH L 73.1% C 0.174 H 308.3°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#C786FB
RGBrgb(199, 134, 251)
HSLhsl(273, 94%, 75%)
HSVhsv(273, 47%, 98%)
CMYKcmyk(20.7%, 46.6%, 0%, 1.6%)
CIE-LABlab(66.64, 46.03, -49.04)
CIE-LCHlch(66.64, 67.26, 313.19°)
OKLaboklab(73.13% 0.1081 -0.1369)
OKLCHoklch(73.13% 0.174 308.3)
XYZxyz(49.4875, 36.1580, 95.6202)
Luminance0.3616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786FB #BAFB86
analogous
#8C86FB #C786FB #FB86F5
triadic
#C786FB #FBC786 #86FBC7
tetradic
#C786FB #FB8C86 #BAFB86 #86F5FB
square
#C786FB #FB8C86 #BAFB86 #86F5FB
split-complementary
#C786FB #F5FB86 #86FB8C
monochromatic
#9010F7 #AC4BF9 #C786FB #E2C1FD #F1E1FE

Accessibility & contrast

On white

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

On black

8.23
#C786FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786FB
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786FB#FFFFFF#000000##000000
##C786FB1.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#699FFF
Deuteranopia (green-blind)
#7AA3F8
Tritanopia (blue-blind)
#C099B5
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c786fb;
/* rgb */ color: rgb(199, 134, 251);
/* oklch */ color: oklch(73.1% 0.174 308.3);
Tailwind
colors: {
  custom: {
    50: '#daabfd',
    500: '#c786fb',
    950: '#000000',
  },
}
SCSS
$custom: #c786fb;
$custom-light: #daabfd;
$custom-dark: #000000;
JSON
{
  "hex": "#c786fb",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 251
  },
  "hsl": {
    "h": 273.333,
    "s": 93.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73135,
    "c": 0.17445,
    "h": 308.3
  },
  "luminance": 0.36157
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C786FB

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

Preview Lab → · Contrast checker → · Palette generator →

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