#C787EB#C787EB

#C787EB is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.5% C 0.154 H 312.5°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#C787EB
RGBrgb(199, 135, 235)
HSLhsl(278, 71%, 73%)
HSVhsv(278, 43%, 92%)
CMYKcmyk(15.3%, 42.6%, 0%, 7.8%)
CIE-LABlab(66.11, 42.04, -41.08)
CIE-LCHlch(66.11, 58.78, 315.66°)
OKLaboklab(72.5% 0.1043 -0.1139)
OKLCHoklch(72.5% 0.154 312.5)
XYZxyz(47.2100, 35.4691, 82.9404)
Luminance0.3547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787EB #ABEB87
analogous
#9587EB #C787EB #EB87DD
triadic
#C787EB #EBC787 #87EBC7
tetradic
#C787EB #EB9587 #ABEB87 #87DDEB
square
#C787EB #EB9587 #ABEB87 #87DDEB
split-complementary
#C787EB #DDEB87 #87EB95
monochromatic
#9523D4 #AF53E2 #C787EB #DFBBF4 #F3E5FB

Accessibility & contrast

On white

2.59
#C787EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#C787EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787EB
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787EB#FFFFFF#000000##000000
##C787EB1.002.598.098.09
#FFFFFF2.591.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#739DEF
Deuteranopia (green-blind)
#84A2E8
Tritanopia (blue-blind)
#C496AE
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #c787eb;
/* rgb */ color: rgb(199, 135, 235);
/* oklch */ color: oklch(72.5% 0.154 312.5);
Tailwind
colors: {
  custom: {
    50: '#d9abf2',
    500: '#c787eb',
    950: '#000000',
  },
}
SCSS
$custom: #c787eb;
$custom-light: #d9abf2;
$custom-dark: #000000;
JSON
{
  "hex": "#c787eb",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 235
  },
  "hsl": {
    "h": 278.4,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.72497,
    "c": 0.15444,
    "h": 312.5
  },
  "luminance": 0.35468
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C787EB

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

Preview Lab → · Contrast checker → · Palette generator →

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