#C787EA#C787EA

#C787EA is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.4% C 0.153 H 312.8°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#C787EA
RGBrgb(199, 135, 234)
HSLhsl(279, 70%, 72%)
HSVhsv(279, 42%, 92%)
CMYKcmyk(15%, 42.3%, 0%, 8.2%)
CIE-LABlab(66.07, 41.83, -40.60)
CIE-LCHlch(66.07, 58.29, 315.86°)
OKLaboklab(72.45% 0.1042 -0.1125)
OKLCHoklch(72.45% 0.153 312.8)
XYZxyz(47.0659, 35.4115, 82.1817)
Luminance0.3541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787EA #AAEA87
analogous
#9687EA #C787EA #EA87DB
triadic
#C787EA #EAC787 #87EAC7
tetradic
#C787EA #EA9687 #AAEA87 #87DBEA
square
#C787EA #EA9687 #AAEA87 #87DBEA
split-complementary
#C787EA #DBEA87 #87EA96
monochromatic
#9525D2 #AF53E1 #C787EA #DFBBF3 #F3E5FA

Accessibility & contrast

On white

2.60
#C787EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#C787EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787EA
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787EA#FFFFFF#000000##000000
##C787EA1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#749DEE
Deuteranopia (green-blind)
#84A2E7
Tritanopia (blue-blind)
#C495AD
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #c787ea;
/* rgb */ color: rgb(199, 135, 234);
/* oklch */ color: oklch(72.4% 0.153 312.8);
Tailwind
colors: {
  custom: {
    50: '#d9abf1',
    500: '#c787ea',
    950: '#000000',
  },
}
SCSS
$custom: #c787ea;
$custom-light: #d9abf1;
$custom-dark: #000000;
JSON
{
  "hex": "#c787ea",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 278.788,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72449,
    "c": 0.1533,
    "h": 312.8
  },
  "luminance": 0.35411
}

Semantic roles & 50–950 ramp

primary
#C787EA
secondary
#E2F2D9
accent
#D21357
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C787EA

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

Preview Lab → · Contrast checker → · Palette generator →

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