#C78DEC#C78DEC

#C78DEC is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.5% C 0.146 H 311.3°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#C78DEC
RGBrgb(199, 141, 236)
HSLhsl(277, 71%, 74%)
HSVhsv(277, 40%, 93%)
CMYKcmyk(15.7%, 40.3%, 0%, 7.5%)
CIE-LABlab(67.46, 39.01, -39.52)
CIE-LCHlch(67.46, 55.53, 314.63°)
OKLaboklab(73.53% 0.0961 -0.1094)
OKLCHoklch(73.53% 0.146 311.3)
XYZxyz(48.2157, 37.2488, 83.9904)
Luminance0.3725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C78DEC #B2EC8D
analogous
#988DEC #C78DEC #EC8DE2
triadic
#C78DEC #ECC78D #8DECC7
tetradic
#C78DEC #EC988D #B2EC8D #8DE2EC
square
#C78DEC #EC988D #B2EC8D #8DE2EC
split-complementary
#C78DEC #E2EC8D #8DEC98
monochromatic
#9324DA #AD59E3 #C78DEC #E1C1F5 #F2E5FB

Accessibility & contrast

On white

2.49
#C78DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#C78DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C78DEC
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C78DEC#FFFFFF#000000##000000
##C78DEC1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA1F0
Deuteranopia (green-blind)
#88A6E9
Tritanopia (blue-blind)
#C39BB1
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #c78dec;
/* rgb */ color: rgb(199, 141, 236);
/* oklch */ color: oklch(73.5% 0.146 311.3);
Tailwind
colors: {
  custom: {
    50: '#d9aff2',
    500: '#c78dec',
    950: '#000000',
  },
}
SCSS
$custom: #c78dec;
$custom-light: #d9aff2;
$custom-dark: #000000;
JSON
{
  "hex": "#c78dec",
  "rgb": {
    "r": 199,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 276.632,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73528,
    "c": 0.14559,
    "h": 311.3
  },
  "luminance": 0.37248
}

Semantic roles & 50–950 ramp

primary
#C78DEC
secondary
#E3F2D9
accent
#D3125D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C78DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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