#E787CC#E787CC

#E787CC is a light, vivid pink. Relative luminance 0.387; OKLCH L 74.7% C 0.144 H 338.3°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#E787CC
RGBrgb(231, 135, 204)
HSLhsl(317, 67%, 72%)
HSVhsv(317, 42%, 91%)
CMYKcmyk(0%, 41.6%, 11.7%, 9.4%)
CIE-LABlab(68.52, 45.99, -19.88)
CIE-LCHlch(68.52, 50.10, 336.62°)
OKLaboklab(74.7% 0.1339 -0.0532)
OKLCHoklch(74.7% 0.144 338.3)
XYZxyz(52.5182, 38.6797, 61.8147)
Luminance0.3868 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E787CC #87E7A2
analogous
#D287E7 #E787CC #E7879C
triadic
#E787CC #CCE787 #87CCE7
tetradic
#E787CC #E7D287 #87E7A2 #879CE7
square
#E787CC #E7D287 #87E7A2 #879CE7
split-complementary
#E787CC #9CE787 #87E7D2
monochromatic
#CB299D #DD54B6 #E787CC #F1BAE2 #FAE5F4

Accessibility & contrast

On white

2.40
#E787CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#E787CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E787CC
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E787CC#FFFFFF#000000##000000
##E787CC1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A9ECE
Deuteranopia (green-blind)
#A3ADC9
Tritanopia (blue-blind)
#F189A1
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #e787cc;
/* rgb */ color: rgb(231, 135, 204);
/* oklch */ color: oklch(74.7% 0.144 338.3);
Tailwind
colors: {
  custom: {
    50: '#f0acdb',
    500: '#e787cc',
    950: '#000000',
  },
}
SCSS
$custom: #e787cc;
$custom-light: #f0acdb;
$custom-dark: #000000;
JSON
{
  "hex": "#e787cc",
  "rgb": {
    "r": 231,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 316.875,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.747,
    "c": 0.14413,
    "h": 338.3
  },
  "luminance": 0.38677
}

Semantic roles & 50–950 ramp

primary
#E787CC
secondary
#D9F1E0
accent
#CF4B17
background
#FEFAFD
surface
#FDF4FB
border
#D5CED4
text
#171015
muted
#857F83

Preview Lab

Preview with #E787CC

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

Preview Lab → · Contrast checker → · Palette generator →

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