#7E174D#7E174D

#7E174D is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.1% C 0.145 H 354.2°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#7E174D
RGBrgb(126, 23, 77)
HSLhsl(329, 69%, 29%)
HSVhsv(329, 82%, 49%)
CMYKcmyk(0%, 81.7%, 38.9%, 50.6%)
CIE-LABlab(28.34, 46.87, -5.74)
CIE-LCHlch(28.34, 47.22, 353.01°)
OKLaboklab(40.14% 0.1441 -0.0146)
OKLCHoklch(40.14% 0.145 354.2)
XYZxyz(10.2508, 5.5855, 7.5580)
Luminance0.0558 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E174D #177E48
analogous
#7C177E #7E174D #7E1719
triadic
#7E174D #4D7E17 #174D7E
tetradic
#7E174D #7E7C17 #177E48 #17197E
square
#7E174D #7E7C17 #177E48 #17197E
split-complementary
#7E174D #197E17 #177E7C
monochromatic
#1A0510 #4A0E2D #7E174D #B2206D #DA358C

Accessibility & contrast

On white

9.92
#7E174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#7E174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E174D
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E174D#FFFFFF#000000##FFFFFF
##7E174D1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C374E
Deuteranopia (green-blind)
#494A4B
Tritanopia (blue-blind)
#880830
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e174d;
/* rgb */ color: rgb(126, 23, 77);
/* oklch */ color: oklch(40.1% 0.145 354.2);
Tailwind
colors: {
  custom: {
    50: '#a8617e',
    500: '#7e174d',
    950: '#000000',
  },
}
SCSS
$custom: #7e174d;
$custom-light: #a8617e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e174d",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 328.544,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.4014,
    "c": 0.14483,
    "h": 354.2
  },
  "luminance": 0.05584
}

Semantic roles & 50–950 ramp

primary
#7E174D
secondary
#3EB376
accent
#EC903C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7E174D

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

Preview Lab → · Contrast checker → · Palette generator →

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