#C786F7#C786F7

#C786F7 is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.9% C 0.170 H 309.3°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#C786F7
RGBrgb(199, 134, 247)
HSLhsl(275, 88%, 75%)
HSVhsv(275, 46%, 97%)
CMYKcmyk(19.4%, 45.7%, 0%, 3.1%)
CIE-LABlab(66.45, 45.16, -47.15)
CIE-LCHlch(66.45, 65.29, 313.76°)
OKLaboklab(72.93% 0.1076 -0.1314)
OKLCHoklch(72.93% 0.17 309.3)
XYZxyz(48.8636, 35.9084, 92.3345)
Luminance0.3591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786F7 #B6F786
analogous
#8E86F7 #C786F7 #F786EF
triadic
#C786F7 #F7C786 #86F7C7
tetradic
#C786F7 #F78E86 #B6F786 #86EFF7
square
#C786F7 #F78E86 #B6F786 #86EFF7
split-complementary
#C786F7 #EFF786 #86F78E
monochromatic
#9213EF #AC4DF3 #C786F7 #E2BFFB #F2E2FD

Accessibility & contrast

On white

2.57
#C786F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#C786F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786F7
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786F7#FFFFFF#000000##000000
##C786F71.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c786f7;
/* rgb */ color: rgb(199, 134, 247);
/* oklch */ color: oklch(72.9% 0.170 309.3);
Tailwind
colors: {
  custom: {
    50: '#daaafa',
    500: '#c786f7',
    950: '#000000',
  },
}
SCSS
$custom: #c786f7;
$custom-light: #daaafa;
$custom-dark: #000000;
JSON
{
  "hex": "#c786f7",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 247
  },
  "hsl": {
    "h": 274.513,
    "s": 87.597,
    "l": 74.706
  },
  "oklch": {
    "l": 0.7293,
    "c": 0.16984,
    "h": 309.3
  },
  "luminance": 0.35908
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C786F7

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

Preview Lab → · Contrast checker → · Palette generator →

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