#EC787F#EC787F

#EC787F is a light, vivid red. Relative luminance 0.328; OKLCH L 70.7% C 0.143 H 17.7°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#EC787F
RGBrgb(236, 120, 127)
HSLhsl(356, 75%, 70%)
HSVhsv(356, 49%, 93%)
CMYKcmyk(0%, 49.2%, 46.2%, 7.5%)
CIE-LABlab(64.00, 45.28, 17.07)
CIE-LCHlch(64.00, 48.39, 20.66°)
OKLaboklab(70.71% 0.1364 0.0434)
OKLCHoklch(70.71% 0.143 17.7)
XYZxyz(45.1423, 32.8028, 24.0288)
Luminance0.3280 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC787F #78ECE5
analogous
#EC78B9 #EC787F #ECAB78
triadic
#EC787F #7FEC78 #787FEC
tetradic
#EC787F #B9EC78 #78ECE5 #AB78EC
square
#EC787F #B9EC78 #78ECE5 #AB78EC
split-complementary
#EC787F #78ECAB #78B9EC
monochromatic
#CD1D27 #E4424C #EC787F #F4AEB2 #FBE3E5

Accessibility & contrast

On white

2.78
#EC787F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#EC787F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC787F
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC787F#FFFFFF#000000##000000
##EC787F1.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918D7F
Deuteranopia (green-blind)
#AEA47D
Tritanopia (blue-blind)
#FF697B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ec787f;
/* rgb */ color: rgb(236, 120, 127);
/* oklch */ color: oklch(70.7% 0.143 17.7);
Tailwind
colors: {
  custom: {
    50: '#f6a1a4',
    500: '#ec787f',
    950: '#000000',
  },
}
SCSS
$custom: #ec787f;
$custom-light: #f6a1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ec787f",
  "rgb": {
    "r": 236,
    "g": 120,
    "b": 127
  },
  "hsl": {
    "h": 356.379,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.70708,
    "c": 0.14312,
    "h": 17.7
  },
  "luminance": 0.32798
}

Semantic roles & 50–950 ramp

primary
#EC787F
secondary
#D0F0EE
accent
#D7CB0E
background
#FFFAFA
surface
#FFF4F4
border
#D7CECE
text
#180F0F
muted
#867F7F

Preview Lab

Preview with #EC787F

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

Preview Lab → · Contrast checker → · Palette generator →

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