#EC798E#EC798E

#EC798E is a light, vivid red. Relative luminance 0.335; OKLCH L 71.2% C 0.143 H 9.8°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#EC798E
RGBrgb(236, 121, 142)
HSLhsl(349, 75%, 70%)
HSVhsv(349, 49%, 93%)
CMYKcmyk(0%, 48.7%, 39.8%, 7.5%)
CIE-LABlab(64.54, 46.32, 9.28)
CIE-LCHlch(64.54, 47.24, 11.33°)
OKLaboklab(71.23% 0.1405 0.0244)
OKLCHoklch(71.23% 0.143 9.8)
XYZxyz(46.3145, 33.4651, 29.6062)
Luminance0.3346 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC798E #79ECD7
analogous
#EC79C8 #EC798E #EC9D79
triadic
#EC798E #8EEC79 #798EEC
tetradic
#EC798E #C8EC79 #79ECD7 #9D79EC
square
#EC798E #C8EC79 #79ECD7 #9D79EC
split-complementary
#EC798E #79EC9D #79C8EC
monochromatic
#CD1D3D #E44361 #EC798E #F4AFBB #FBE4E8

Accessibility & contrast

On white

2.73
#EC798E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#EC798E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC798E
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC798E#FFFFFF#000000##000000
##EC798E1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8F8E
Deuteranopia (green-blind)
#ACA58C
Tritanopia (blue-blind)
#FE6D81
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ec798e;
/* rgb */ color: rgb(236, 121, 142);
/* oklch */ color: oklch(71.2% 0.143 9.8);
Tailwind
colors: {
  custom: {
    50: '#f6a2ae',
    500: '#ec798e',
    950: '#000000',
  },
}
SCSS
$custom: #ec798e;
$custom-light: #f6a2ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ec798e",
  "rgb": {
    "r": 236,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 349.043,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.71225,
    "c": 0.14261,
    "h": 9.8
  },
  "luminance": 0.33461
}

Semantic roles & 50–950 ramp

primary
#EC798E
secondary
#D0F0EB
accent
#D7B30E
background
#FFFAFA
surface
#FFF4F4
border
#D7CECE
text
#180F10
muted
#867F7F

Preview Lab

Preview with #EC798E

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

Preview Lab → · Contrast checker → · Palette generator →

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