#C787EE#C787EE

#C787EE is a light, vivid violet. Relative luminance 0.356; OKLCH L 72.6% C 0.158 H 311.6°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#C787EE
RGBrgb(199, 135, 238)
HSLhsl(277, 75%, 73%)
HSVhsv(277, 43%, 93%)
CMYKcmyk(16.4%, 43.3%, 0%, 6.7%)
CIE-LABlab(66.25, 42.68, -42.52)
CIE-LCHlch(66.25, 60.25, 315.11°)
OKLaboklab(72.64% 0.1049 -0.118)
OKLCHoklch(72.64% 0.158 311.6)
XYZxyz(47.6471, 35.6440, 85.2423)
Luminance0.3564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C787EE #AEEE87
analogous
#9387EE #C787EE #EE87E1
triadic
#C787EE #EEC787 #87EEC7
tetradic
#C787EE #EE9387 #AEEE87 #87E1EE
square
#C787EE #EE9387 #AEEE87 #87E1EE
split-complementary
#C787EE #E1EE87 #87EE93
monochromatic
#941FDC #AE51E6 #C787EE #E0BDF6 #F2E4FB

Accessibility & contrast

On white

2.58
#C787EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#C787EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C787EE
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C787EE#FFFFFF#000000##000000
##C787EE1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF2
Deuteranopia (green-blind)
#82A2EB
Tritanopia (blue-blind)
#C396AF
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #c787ee;
/* rgb */ color: rgb(199, 135, 238);
/* oklch */ color: oklch(72.6% 0.158 311.6);
Tailwind
colors: {
  custom: {
    50: '#daabf4',
    500: '#c787ee',
    950: '#000000',
  },
}
SCSS
$custom: #c787ee;
$custom-light: #daabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#c787ee",
  "rgb": {
    "r": 199,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 277.282,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.72643,
    "c": 0.15788,
    "h": 311.6
  },
  "luminance": 0.35643
}

Semantic roles & 50–950 ramp

primary
#C787EE
secondary
#E2F3D8
accent
#D70E5A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C787EE

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

Preview Lab → · Contrast checker → · Palette generator →

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