#7E173B#7E173B

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

Color values

HEX#7E173B
RGBrgb(126, 23, 59)
HSLhsl(339, 69%, 29%)
HSVhsv(339, 82%, 49%)
CMYKcmyk(0%, 81.7%, 53.2%, 50.6%)
CIE-LABlab(27.75, 45.08, 5.47)
CIE-LCHlch(27.75, 45.41, 6.91°)
OKLaboklab(39.52% 0.1378 0.0143)
OKLCHoklch(39.52% 0.138 5.9)
XYZxyz(9.7009, 5.3655, 4.6617)
Luminance0.0536 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E173B #177E5A
analogous
#7E176F #7E173B #7E2617
triadic
#7E173B #3B7E17 #173B7E
tetradic
#7E173B #6F7E17 #177E5A #26177E
square
#7E173B #6F7E17 #177E5A #26177E
split-complementary
#7E173B #177E26 #176F7E
monochromatic
#1A050C #4A0E23 #7E173B #B22053 #DA356F

Accessibility & contrast

On white

10.13
#7E173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E173B
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E173B#FFFFFF#000000##FFFFFF
##7E173B1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32343C
Deuteranopia (green-blind)
#4D4939
Tritanopia (blue-blind)
#8A0027
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e173b;
/* rgb */ color: rgb(126, 23, 59);
/* oklch */ color: oklch(39.5% 0.138 5.9);
Tailwind
colors: {
  custom: {
    50: '#a96070',
    500: '#7e173b',
    950: '#000000',
  },
}
SCSS
$custom: #7e173b;
$custom-light: #a96070;
$custom-dark: #000000;
JSON
{
  "hex": "#7e173b",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 339.029,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39515,
    "c": 0.13849,
    "h": 5.9
  },
  "luminance": 0.05364
}

Semantic roles & 50–950 ramp

primary
#7E173B
secondary
#3EB38A
accent
#ECAE3C
background
#FBF6F6
surface
#F6EBEC
border
#D0C6C7
text
#110507
muted
#807A7A

Preview Lab

Preview with #7E173B

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

Preview Lab → · Contrast checker → · Palette generator →

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