#7E173F#7E173F

#7E173F is a dark, vivid pink. Relative luminance 0.054; OKLCH L 39.6% C 0.140 H 3.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#7E173F
RGBrgb(126, 23, 63)
HSLhsl(337, 69%, 29%)
HSVhsv(337, 82%, 49%)
CMYKcmyk(0%, 81.7%, 50%, 50.6%)
CIE-LABlab(27.87, 45.44, 2.94)
CIE-LCHlch(27.87, 45.53, 3.70°)
OKLaboklab(39.64% 0.1393 0.008)
OKLCHoklch(39.64% 0.14 3.3)
XYZxyz(9.8086, 5.4086, 5.2291)
Luminance0.0541 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E173F #177E56
analogous
#7E1773 #7E173F #7E2317
triadic
#7E173F #3F7E17 #173F7E
tetradic
#7E173F #737E17 #177E56 #23177E
square
#7E173F #737E17 #177E56 #23177E
split-complementary
#7E173F #177E23 #17737E
monochromatic
#1A050D #4A0E25 #7E173F #B22059 #DA3575

Accessibility & contrast

On white

10.09
#7E173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E173F
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E173F#FFFFFF#000000##FFFFFF
##7E173F1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313540
Deuteranopia (green-blind)
#4C493D
Tritanopia (blue-blind)
#8A0029
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e173f;
/* rgb */ color: rgb(126, 23, 63);
/* oklch */ color: oklch(39.6% 0.140 3.3);
Tailwind
colors: {
  custom: {
    50: '#a96073',
    500: '#7e173f',
    950: '#000000',
  },
}
SCSS
$custom: #7e173f;
$custom-light: #a96073;
$custom-dark: #000000;
JSON
{
  "hex": "#7e173f",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 336.699,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39639,
    "c": 0.13953,
    "h": 3.3
  },
  "luminance": 0.05407
}

Semantic roles & 50–950 ramp

primary
#7E173F
secondary
#3EB385
accent
#ECA83C
background
#FAF6F7
surface
#F5EBED
border
#CFC6C8
text
#110508
muted
#807A7B

Preview Lab

Preview with #7E173F

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

Preview Lab → · Contrast checker → · Palette generator →

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