#C781EC#C781EC

#C781EC is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.6% C 0.165 H 313.0°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#C781EC
RGBrgb(199, 129, 236)
HSLhsl(279, 74%, 72%)
HSVhsv(279, 45%, 93%)
CMYKcmyk(15.7%, 45.3%, 0%, 7.5%)
CIE-LABlab(64.88, 45.46, -43.56)
CIE-LCHlch(64.88, 62.97, 316.22°)
OKLaboklab(71.59% 0.1129 -0.121)
OKLCHoklch(71.59% 0.165 313)
XYZxyz(46.5412, 33.8998, 83.4322)
Luminance0.3390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C781EC #A6EC81
analogous
#9281EC #C781EC #EC81DC
triadic
#C781EC #ECC781 #81ECC7
tetradic
#C781EC #EC9281 #A6EC81 #81DCEC
square
#C781EC #EC9281 #A6EC81 #81DCEC
split-complementary
#C781EC #DCEC81 #81EC92
monochromatic
#9520D3 #AF4CE4 #C781EC #DFB6F4 #F3E4FB

Accessibility & contrast

On white

2.70
#C781EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#C781EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C781EC
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C781EC#FFFFFF#000000##000000
##C781EC1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9AF0
Deuteranopia (green-blind)
#7E9FE9
Tritanopia (blue-blind)
#C491AB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #c781ec;
/* rgb */ color: rgb(199, 129, 236);
/* oklch */ color: oklch(71.6% 0.165 313.0);
Tailwind
colors: {
  custom: {
    50: '#daa7f2',
    500: '#c781ec',
    950: '#000000',
  },
}
SCSS
$custom: #c781ec;
$custom-light: #daa7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#c781ec",
  "rgb": {
    "r": 199,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 279.252,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.71592,
    "c": 0.16546,
    "h": 313
  },
  "luminance": 0.33899
}

Semantic roles & 50–950 ramp

primary
#C781EC
secondary
#E0F2D7
accent
#D61054
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C781EC

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

Preview Lab → · Contrast checker → · Palette generator →

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