#EC798A#EC798A

#EC798A is a light, vivid red. Relative luminance 0.333; OKLCH L 71.1% C 0.142 H 12.1°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#EC798A
RGBrgb(236, 121, 138)
HSLhsl(351, 75%, 70%)
HSVhsv(351, 49%, 93%)
CMYKcmyk(0%, 48.7%, 41.5%, 7.5%)
CIE-LABlab(64.44, 45.89, 11.43)
CIE-LCHlch(64.44, 47.29, 13.98°)
OKLaboklab(71.12% 0.139 0.0297)
OKLCHoklch(71.12% 0.142 12.1)
XYZxyz(46.0196, 33.3472, 28.0529)
Luminance0.3334 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC798A #79ECDB
analogous
#EC79C4 #EC798A #ECA179
triadic
#EC798A #8AEC79 #798AEC
tetradic
#EC798A #C4EC79 #79ECDB #A179EC
square
#EC798A #C4EC79 #79ECDB #A179EC
split-complementary
#EC798A #79ECA1 #79C4EC
monochromatic
#CD1D37 #E4435B #EC798A #F4AFB9 #FBE4E8

Accessibility & contrast

On white

2.74
#EC798A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#EC798A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC798A
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC798A#FFFFFF#000000##000000
##EC798A1.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#908E8A
Deuteranopia (green-blind)
#ACA588
Tritanopia (blue-blind)
#FE6C7F
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ec798a;
/* rgb */ color: rgb(236, 121, 138);
/* oklch */ color: oklch(71.1% 0.142 12.1);
Tailwind
colors: {
  custom: {
    50: '#f6a2ac',
    500: '#ec798a',
    950: '#000000',
  },
}
SCSS
$custom: #ec798a;
$custom-light: #f6a2ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ec798a",
  "rgb": {
    "r": 236,
    "g": 121,
    "b": 138
  },
  "hsl": {
    "h": 351.13,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.71122,
    "c": 0.14215,
    "h": 12.1
  },
  "luminance": 0.33343
}

Semantic roles & 50–950 ramp

primary
#EC798A
secondary
#D0F0EC
accent
#D7BA0E
background
#FFFAFA
surface
#FFF4F4
border
#D7CECE
text
#180F10
muted
#867F7F

Preview Lab

Preview with #EC798A

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

Preview Lab → · Contrast checker → · Palette generator →

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