#C786CA#C786CA

#C786CA is a light, vivid purple. Relative luminance 0.335; OKLCH L 70.9% C 0.120 H 325.2°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#C786CA
RGBrgb(199, 134, 202)
HSLhsl(297, 39%, 66%)
HSVhsv(297, 34%, 79%)
CMYKcmyk(1.5%, 33.7%, 0%, 20.8%)
CIE-LABlab(64.53, 35.94, -25.19)
CIE-LCHlch(64.53, 43.89, 324.98°)
OKLaboklab(70.86% 0.0987 -0.0685)
OKLCHoklch(70.86% 0.12 325.2)
XYZxyz(42.7379, 33.4581, 60.0725)
Luminance0.3346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C786CA #89CA86
analogous
#A586CA #C786CA #CA86AB
triadic
#C786CA #CAC786 #86CAC7
tetradic
#C786CA #CAA586 #89CA86 #86ABCA
square
#C786CA #CAA586 #89CA86 #86ABCA
split-complementary
#C786CA #ABCA86 #86CAA5
monochromatic
#914195 #B35BB7 #C786CA #DBB1DD #EEDBEF

Accessibility & contrast

On white

2.73
#C786CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#C786CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C786CA
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C786CA#FFFFFF#000000##000000
##C786CA1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8097CD
Deuteranopia (green-blind)
#909FC8
Tritanopia (blue-blind)
#CA8C9F
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #c786ca;
/* rgb */ color: rgb(199, 134, 202);
/* oklch */ color: oklch(70.9% 0.120 325.2);
Tailwind
colors: {
  custom: {
    50: '#d9aada',
    500: '#c786ca',
    950: '#000000',
  },
}
SCSS
$custom: #c786ca;
$custom-light: #d9aada;
$custom-dark: #000000;
JSON
{
  "hex": "#c786ca",
  "rgb": {
    "r": 199,
    "g": 134,
    "b": 202
  },
  "hsl": {
    "h": 297.353,
    "s": 39.08,
    "l": 65.882
  },
  "oklch": {
    "l": 0.70857,
    "c": 0.12012,
    "h": 325.2
  },
  "luminance": 0.33457
}

Semantic roles & 50–950 ramp

primary
#C786CA
secondary
#CCE1CB
accent
#B23339
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#151014
muted
#837F83

Preview Lab

Preview with #C786CA

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

Preview Lab → · Contrast checker → · Palette generator →

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