#7E174E#7E174E

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

Color values

HEX#7E174E
RGBrgb(126, 23, 78)
HSLhsl(328, 69%, 29%)
HSVhsv(328, 82%, 49%)
CMYKcmyk(0%, 81.7%, 38.1%, 50.6%)
CIE-LABlab(28.38, 46.98, -6.35)
CIE-LCHlch(28.38, 47.41, 352.30°)
OKLaboklab(40.18% 0.1444 -0.0162)
OKLCHoklch(40.18% 0.145 353.6)
XYZxyz(10.2864, 5.5998, 7.7454)
Luminance0.0560 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E174E #177E47
analogous
#7B177E #7E174E #7E171B
triadic
#7E174E #4E7E17 #174E7E
tetradic
#7E174E #7E7B17 #177E47 #171B7E
square
#7E174E #7E7B17 #177E47 #171B7E
split-complementary
#7E174E #1B7E17 #177E7B
monochromatic
#1A0510 #4A0E2E #7E174E #B2206E #DA358D

Accessibility & contrast

On white

9.91
#7E174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E174E
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E174E#FFFFFF#000000##FFFFFF
##7E174E1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C374F
Deuteranopia (green-blind)
#494A4C
Tritanopia (blue-blind)
#880930
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e174e;
/* rgb */ color: rgb(126, 23, 78);
/* oklch */ color: oklch(40.2% 0.145 353.6);
Tailwind
colors: {
  custom: {
    50: '#a8617f',
    500: '#7e174e',
    950: '#000000',
  },
}
SCSS
$custom: #7e174e;
$custom-light: #a8617f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e174e",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 327.961,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40179,
    "c": 0.1453,
    "h": 353.6
  },
  "luminance": 0.05598
}

Semantic roles & 50–950 ramp

primary
#7E174E
secondary
#3EB374
accent
#EC8E3C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7E174E

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

Preview Lab → · Contrast checker → · Palette generator →

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