#7E173C#7E173C

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

Color values

HEX#7E173C
RGBrgb(126, 23, 60)
HSLhsl(338, 69%, 29%)
HSVhsv(338, 82%, 49%)
CMYKcmyk(0%, 81.7%, 52.4%, 50.6%)
CIE-LABlab(27.78, 45.17, 4.83)
CIE-LCHlch(27.78, 45.43, 6.11°)
OKLaboklab(39.55% 0.1382 0.0127)
OKLCHoklch(39.55% 0.139 5.3)
XYZxyz(9.7271, 5.3760, 4.7996)
Luminance0.0537 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E173C #177E59
analogous
#7E1770 #7E173C #7E2617
triadic
#7E173C #3C7E17 #173C7E
tetradic
#7E173C #707E17 #177E59 #26177E
square
#7E173C #707E17 #177E59 #26177E
split-complementary
#7E173C #177E26 #17707E
monochromatic
#1A050C #4A0E23 #7E173C #B22055 #DA3570

Accessibility & contrast

On white

10.12
#7E173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#7E173C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E173C
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E173C#FFFFFF#000000##FFFFFF
##7E173C1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32353D
Deuteranopia (green-blind)
#4D493A
Tritanopia (blue-blind)
#8A0027
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e173c;
/* rgb */ color: rgb(126, 23, 60);
/* oklch */ color: oklch(39.5% 0.139 5.3);
Tailwind
colors: {
  custom: {
    50: '#a96071',
    500: '#7e173c',
    950: '#000000',
  },
}
SCSS
$custom: #7e173c;
$custom-light: #a96071;
$custom-dark: #000000;
JSON
{
  "hex": "#7e173c",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 338.447,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39545,
    "c": 0.13873,
    "h": 5.3
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#7E173C
secondary
#3EB389
accent
#ECAD3C
background
#FBF6F6
surface
#F6EBEC
border
#D0C6C7
text
#110507
muted
#807A7A

Preview Lab

Preview with #7E173C

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

Preview Lab → · Contrast checker → · Palette generator →

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