#7E173A#7E173A

#7E173A is a dark, vivid pink. Relative luminance 0.054; OKLCH L 39.5% C 0.138 H 6.6°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#7E173A
RGBrgb(126, 23, 58)
HSLhsl(340, 69%, 29%)
HSVhsv(340, 82%, 49%)
CMYKcmyk(0%, 81.7%, 54%, 50.6%)
CIE-LABlab(27.72, 44.99, 6.10)
CIE-LCHlch(27.72, 45.41, 7.72°)
OKLaboklab(39.49% 0.1374 0.0158)
OKLCHoklch(39.49% 0.138 6.6)
XYZxyz(9.6752, 5.3553, 4.5264)
Luminance0.0535 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E173A #177E5B
analogous
#7E176E #7E173A #7E2817
triadic
#7E173A #3A7E17 #173A7E
tetradic
#7E173A #6E7E17 #177E5B #28177E
square
#7E173A #6E7E17 #177E5B #28177E
split-complementary
#7E173A #177E28 #176E7E
monochromatic
#1A050C #4A0E22 #7E173A #B22052 #DA356D

Accessibility & contrast

On white

10.14
#7E173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#7E173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E173A
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E173A#FFFFFF#000000##FFFFFF
##7E173A1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32343B
Deuteranopia (green-blind)
#4D4938
Tritanopia (blue-blind)
#8A0026
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e173a;
/* rgb */ color: rgb(126, 23, 58);
/* oklch */ color: oklch(39.5% 0.138 6.6);
Tailwind
colors: {
  custom: {
    50: '#a9606f',
    500: '#7e173a',
    950: '#000000',
  },
}
SCSS
$custom: #7e173a;
$custom-light: #a9606f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e173a",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 339.612,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39485,
    "c": 0.13827,
    "h": 6.6
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#7E173A
secondary
#3EB38B
accent
#ECB03C
background
#FBF6F6
surface
#F6EBEC
border
#D0C6C7
text
#110507
muted
#807A7A

Preview Lab

Preview with #7E173A

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

Preview Lab → · Contrast checker → · Palette generator →

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