#EC798F#EC798F

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

Color values

HEX#EC798F
RGBrgb(236, 121, 143)
HSLhsl(349, 75%, 70%)
HSVhsv(349, 49%, 93%)
CMYKcmyk(0%, 48.7%, 39.4%, 7.5%)
CIE-LABlab(64.56, 46.43, 8.75)
CIE-LCHlch(64.56, 47.25, 10.67°)
OKLaboklab(71.25% 0.1409 0.023)
OKLCHoklch(71.25% 0.143 9.3)
XYZxyz(46.3899, 33.4953, 30.0034)
Luminance0.3349 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC798F #79ECD6
analogous
#EC79C8 #EC798F #EC9D79
triadic
#EC798F #8FEC79 #798FEC
tetradic
#EC798F #C8EC79 #79ECD6 #9D79EC
square
#EC798F #C8EC79 #79ECD6 #9D79EC
split-complementary
#EC798F #79EC9D #79C8EC
monochromatic
#CD1D3F #E44362 #EC798F #F4AFBC #FBE4E9

Accessibility & contrast

On white

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

On black

7.70
#EC798F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC798F
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC798F#FFFFFF#000000##000000
##EC798F1.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8F8F
Deuteranopia (green-blind)
#ACA58D
Tritanopia (blue-blind)
#FE6D81
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ec798f;
/* rgb */ color: rgb(236, 121, 143);
/* oklch */ color: oklch(71.3% 0.143 9.3);
Tailwind
colors: {
  custom: {
    50: '#f6a2af',
    500: '#ec798f',
    950: '#000000',
  },
}
SCSS
$custom: #ec798f;
$custom-light: #f6a2af;
$custom-dark: #000000;
JSON
{
  "hex": "#ec798f",
  "rgb": {
    "r": 236,
    "g": 121,
    "b": 143
  },
  "hsl": {
    "h": 348.522,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.71251,
    "c": 0.14275,
    "h": 9.3
  },
  "luminance": 0.33491
}

Semantic roles & 50–950 ramp

primary
#EC798F
secondary
#D0F0EA
accent
#D7B10E
background
#FFFAFA
surface
#FFF4F4
border
#D7CECE
text
#180F10
muted
#867F7F

Preview Lab

Preview with #EC798F

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

Preview Lab → · Contrast checker → · Palette generator →

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