#C786F8#C786F8

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

Color values

HEX#C786F8
RGBrgb(199, 134, 248)
HSLhsl(274, 89%, 75%)
HSVhsv(274, 46%, 97%)
CMYKcmyk(19.8%, 46%, 0%, 2.7%)
CIE-LABlab(66.50, 45.38, -47.62)
CIE-LCHlch(66.50, 65.78, 313.62°)
OKLaboklab(72.98% 0.1077 -0.1328)
OKLCHoklch(72.98% 0.171 309)
XYZxyz(49.0183, 35.9703, 93.1494)
Luminance0.3597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786F8 #B7F886
analogous
#8E86F8 #C786F8 #F886F0
triadic
#C786F8 #F8C786 #86F8C7
tetradic
#C786F8 #F88E86 #B7F886 #86F0F8
square
#C786F8 #F88E86 #B7F886 #86F0F8
split-complementary
#C786F8 #F0F886 #86F88E
monochromatic
#9112F1 #AC4CF5 #C786F8 #E2C0FB #F2E2FD

Accessibility & contrast

On white

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

On black

8.19
#C786F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786F8
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786F8#FFFFFF#000000##000000
##C786F81.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9FFC
Deuteranopia (green-blind)
#7CA3F5
Tritanopia (blue-blind)
#C198B3
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #c786f8;
/* rgb */ color: rgb(199, 134, 248);
/* oklch */ color: oklch(73.0% 0.171 309.0);
Tailwind
colors: {
  custom: {
    50: '#daaafb',
    500: '#c786f8',
    950: '#000000',
  },
}
SCSS
$custom: #c786f8;
$custom-light: #daaafb;
$custom-dark: #000000;
JSON
{
  "hex": "#c786f8",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 248
  },
  "hsl": {
    "h": 274.211,
    "s": 89.063,
    "l": 74.902
  },
  "oklch": {
    "l": 0.72981,
    "c": 0.17099,
    "h": 309
  },
  "luminance": 0.3597
}

Semantic roles & 50–950 ramp

primary
#C786F8
secondary
#E3F5D6
accent
#E60063
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C786F8

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

Preview Lab → · Contrast checker → · Palette generator →

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