#C781EA#C781EA

#C781EA is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.5% C 0.163 H 313.6°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#C781EA
RGBrgb(199, 129, 234)
HSLhsl(280, 71%, 71%)
HSVhsv(280, 45%, 92%)
CMYKcmyk(15%, 44.9%, 0%, 8.2%)
CIE-LABlab(64.79, 45.04, -42.60)
CIE-LCHlch(64.79, 62.00, 316.60°)
OKLaboklab(71.49% 0.1126 -0.1182)
OKLCHoklch(71.49% 0.163 313.6)
XYZxyz(46.2523, 33.7842, 81.9105)
Luminance0.3378 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C781EA #A4EA81
analogous
#9281EA #C781EA #EA81D8
triadic
#C781EA #EAC781 #81EAC7
tetradic
#C781EA #EA9281 #A4EA81 #81D8EA
square
#C781EA #EA9281 #A4EA81 #81D8EA
split-complementary
#C781EA #D8EA81 #81EA92
monochromatic
#9522CE #B04DE1 #C781EA #DEB5F3 #F3E5FB

Accessibility & contrast

On white

2.71
#C781EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#C781EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C781EA
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C781EA#FFFFFF#000000##000000
##C781EA1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C99EE
Deuteranopia (green-blind)
#7F9FE7
Tritanopia (blue-blind)
#C490AA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #c781ea;
/* rgb */ color: rgb(199, 129, 234);
/* oklch */ color: oklch(71.5% 0.163 313.6);
Tailwind
colors: {
  custom: {
    50: '#daa7f1',
    500: '#c781ea',
    950: '#000000',
  },
}
SCSS
$custom: #c781ea;
$custom-light: #daa7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#c781ea",
  "rgb": {
    "r": 199,
    "g": 129,
    "b": 234
  },
  "hsl": {
    "h": 280,
    "s": 71.429,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71493,
    "c": 0.16324,
    "h": 313.6
  },
  "luminance": 0.33783
}

Semantic roles & 50–950 ramp

primary
#C781EA
secondary
#DFF1D6
accent
#D31253
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C781EA

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

Preview Lab → · Contrast checker → · Palette generator →

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