#C786F3#C786F3

#C786F3 is a light, vivid violet. Relative luminance 0.357; OKLCH L 72.7% C 0.165 H 310.4°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#C786F3
RGBrgb(199, 134, 243)
HSLhsl(276, 82%, 74%)
HSVhsv(276, 45%, 95%)
CMYKcmyk(18.1%, 44.9%, 0%, 4.7%)
CIE-LABlab(66.26, 44.29, -45.25)
CIE-LCHlch(66.26, 63.32, 314.39°)
OKLaboklab(72.73% 0.107 -0.1259)
OKLCHoklch(72.73% 0.165 310.4)
XYZxyz(48.2530, 35.6642, 89.1186)
Luminance0.3566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786F3 #B2F386
analogous
#9186F3 #C786F3 #F386E9
triadic
#C786F3 #F3C786 #86F3C7
tetradic
#C786F3 #F39186 #B2F386 #86E9F3
square
#C786F3 #F39186 #B2F386 #86E9F3
split-complementary
#C786F3 #E9F386 #86F391
monochromatic
#9317E8 #AD4EED #C786F3 #E1BEF9 #F2E3FC

Accessibility & contrast

On white

2.58
#C786F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#C786F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786F3
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786F3#FFFFFF#000000##000000
##C786F31.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9EF7
Deuteranopia (green-blind)
#7FA2F0
Tritanopia (blue-blind)
#C297B1
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #c786f3;
/* rgb */ color: rgb(199, 134, 243);
/* oklch */ color: oklch(72.7% 0.165 310.4);
Tailwind
colors: {
  custom: {
    50: '#daaaf7',
    500: '#c786f3',
    950: '#000000',
  },
}
SCSS
$custom: #c786f3;
$custom-light: #daaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#c786f3",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 243
  },
  "hsl": {
    "h": 275.78,
    "s": 81.955,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72729,
    "c": 0.16524,
    "h": 310.4
  },
  "luminance": 0.35663
}

Semantic roles & 50–950 ramp

primary
#C786F3
secondary
#E3F4D7
accent
#DE075E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C786F3

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

Preview Lab → · Contrast checker → · Palette generator →

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