#EC5171#EC5171

#EC5171 is a light, vivid red. Relative luminance 0.249; OKLCH L 65.3% C 0.191 H 11.9°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#EC5171
RGBrgb(236, 81, 113)
HSLhsl(348, 80%, 62%)
HSVhsv(348, 66%, 93%)
CMYKcmyk(0%, 65.7%, 52.1%, 7.5%)
CIE-LABlab(56.99, 61.68, 15.49)
CIE-LCHlch(56.99, 63.60, 14.09°)
OKLaboklab(65.34% 0.1866 0.0392)
OKLCHoklch(65.34% 0.191 11.9)
XYZxyz(40.5186, 24.9153, 18.2950)
Luminance0.2491 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC5171 #51ECCC
analogous
#EC51BF #EC5171 #EC7F51
triadic
#EC5171 #71EC51 #5171EC
tetradic
#EC5171 #BFEC51 #51ECCC #7F51EC
square
#EC5171 #BFEC51 #51ECCC #7F51EC
split-complementary
#EC5171 #51EC7F #51BFEC
monochromatic
#AF1333 #E61A44 #EC5171 #F2889E #F8BFCB

Accessibility & contrast

On white

3.51
#EC5171 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#EC5171 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EC5171
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC5171#FFFFFF#000000##000000
##EC51711.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#767571
Deuteranopia (green-blind)
#9E946D
Tritanopia (blue-blind)
#FF355E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ec5171;
/* rgb */ color: rgb(236, 81, 113);
/* oklch */ color: oklch(65.3% 0.191 11.9);
Tailwind
colors: {
  custom: {
    50: '#f88a99',
    500: '#ec5171',
    950: '#000000',
  },
}
SCSS
$custom: #ec5171;
$custom-light: #f88a99;
$custom-dark: #000000;
JSON
{
  "hex": "#ec5171",
  "rgb": {
    "r": 236,
    "g": 81,
    "b": 113
  },
  "hsl": {
    "h": 347.613,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.65341,
    "c": 0.19065,
    "h": 11.9
  },
  "luminance": 0.2491
}

Semantic roles & 50–950 ramp

primary
#EC5171
secondary
#B0E9DD
accent
#DDB109
background
#FFF8F9
surface
#FFF0F2
border
#D7CBCC
text
#180C0D
muted
#867D7E

Preview Lab

Preview with #EC5171

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

Preview Lab → · Contrast checker → · Palette generator →

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