#7E174F#7E174F

#7E174F is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.2% C 0.146 H 353.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#7E174F
RGBrgb(126, 23, 79)
HSLhsl(327, 69%, 29%)
HSVhsv(327, 82%, 49%)
CMYKcmyk(0%, 81.7%, 37.3%, 50.6%)
CIE-LABlab(28.42, 47.10, -6.96)
CIE-LCHlch(28.42, 47.61, 351.59°)
OKLaboklab(40.22% 0.1447 -0.0179)
OKLCHoklch(40.22% 0.146 353)
XYZxyz(10.3225, 5.6142, 7.9357)
Luminance0.0561 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E174F #177E46
analogous
#7A177E #7E174F #7E171B
triadic
#7E174F #4F7E17 #174F7E
tetradic
#7E174F #7E7A17 #177E46 #171B7E
square
#7E174F #7E7A17 #177E46 #171B7E
split-complementary
#7E174F #1B7E17 #177E7A
monochromatic
#1A0510 #4A0E2F #7E174F #B2206F #DA358F

Accessibility & contrast

On white

9.89
#7E174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E174F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E174F#FFFFFF#000000##FFFFFF
##7E174F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3750
Deuteranopia (green-blind)
#494A4D
Tritanopia (blue-blind)
#880A31
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e174f;
/* rgb */ color: rgb(126, 23, 79);
/* oklch */ color: oklch(40.2% 0.146 353.0);
Tailwind
colors: {
  custom: {
    50: '#a86180',
    500: '#7e174f',
    950: '#000000',
  },
}
SCSS
$custom: #7e174f;
$custom-light: #a86180;
$custom-dark: #000000;
JSON
{
  "hex": "#7e174f",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 327.379,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.4022,
    "c": 0.14578,
    "h": 353
  },
  "luminance": 0.05613
}

Semantic roles & 50–950 ramp

primary
#7E174F
secondary
#3EB373
accent
#EC8C3C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7E174F

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

Preview Lab → · Contrast checker → · Palette generator →

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