#EC797F#EC797F

#EC797F is a light, vivid red. Relative luminance 0.330; OKLCH L 70.9% C 0.142 H 18.1°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#EC797F
RGBrgb(236, 121, 127)
HSLhsl(357, 75%, 70%)
HSVhsv(357, 49%, 93%)
CMYKcmyk(0%, 48.7%, 46.2%, 7.5%)
CIE-LABlab(64.20, 44.78, 17.34)
CIE-LCHlch(64.20, 48.02, 21.17°)
OKLaboklab(70.86% 0.1348 0.0441)
OKLCHoklch(70.86% 0.142 18.1)
XYZxyz(45.2632, 33.0446, 24.0691)
Luminance0.3304 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC797F #79ECE6
analogous
#EC79B8 #EC797F #ECAD79
triadic
#EC797F #7FEC79 #797FEC
tetradic
#EC797F #B8EC79 #79ECE6 #AD79EC
square
#EC797F #B8EC79 #79ECE6 #AD79EC
split-complementary
#EC797F #79ECAD #79B8EC
monochromatic
#CD1D26 #E4434C #EC797F #F4AFB2 #FBE4E5

Accessibility & contrast

On white

2.76
#EC797F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#EC797F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC797F
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC797F#FFFFFF#000000##000000
##EC797F1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928D7F
Deuteranopia (green-blind)
#AEA47D
Tritanopia (blue-blind)
#FF6A7C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ec797f;
/* rgb */ color: rgb(236, 121, 127);
/* oklch */ color: oklch(70.9% 0.142 18.1);
Tailwind
colors: {
  custom: {
    50: '#f6a2a4',
    500: '#ec797f',
    950: '#000000',
  },
}
SCSS
$custom: #ec797f;
$custom-light: #f6a2a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ec797f",
  "rgb": {
    "r": 236,
    "g": 121,
    "b": 127
  },
  "hsl": {
    "h": 356.87,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.70857,
    "c": 0.14185,
    "h": 18.1
  },
  "luminance": 0.3304
}

Semantic roles & 50–950 ramp

primary
#EC797F
secondary
#D0F0EF
accent
#D7CD0E
background
#FFFAFA
surface
#FFF4F4
border
#D7CECE
text
#180F0F
muted
#867F7F

Preview Lab

Preview with #EC797F

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

Preview Lab → · Contrast checker → · Palette generator →

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