#7E174A#7E174A

#7E174A is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.0% C 0.143 H 356.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#7E174A
RGBrgb(126, 23, 74)
HSLhsl(330, 69%, 29%)
HSVhsv(330, 82%, 49%)
CMYKcmyk(0%, 81.7%, 41.3%, 50.6%)
CIE-LABlab(28.23, 46.54, -3.91)
CIE-LCHlch(28.23, 46.71, 355.20°)
OKLaboklab(40.02% 0.1432 -0.0097)
OKLCHoklch(40.02% 0.143 356.1)
XYZxyz(10.1473, 5.5441, 7.0130)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E174A #177E4B
analogous
#7E177E #7E174A #7E1717
triadic
#7E174A #4A7E17 #174A7E
tetradic
#7E174A #7E7E17 #177E4B #17177E
square
#7E174A #7E7E17 #177E4B #17177E
split-complementary
#7E174A #177E17 #177E7E
monochromatic
#1A050F #4A0E2C #7E174A #B22068 #DA3587

Accessibility & contrast

On white

9.96
#7E174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E174A
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E174A#FFFFFF#000000##FFFFFF
##7E174A1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D364B
Deuteranopia (green-blind)
#4A4948
Tritanopia (blue-blind)
#89062E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e174a;
/* rgb */ color: rgb(126, 23, 74);
/* oklch */ color: oklch(40.0% 0.143 356.1);
Tailwind
colors: {
  custom: {
    50: '#a8607c',
    500: '#7e174a',
    950: '#000000',
  },
}
SCSS
$custom: #7e174a;
$custom-light: #a8607c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e174a",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 330.291,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40024,
    "c": 0.14349,
    "h": 356.1
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#7E174A
secondary
#3EB379
accent
#EC953C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#100509
muted
#7F7A7B

Preview Lab

Preview with #7E174A

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

Preview Lab → · Contrast checker → · Palette generator →

#7E174A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva