#7E1B3A#7E1B3A

#7E1B3A is a dark, vivid pink. Relative luminance 0.055; OKLCH L 39.8% C 0.134 H 7.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#7E1B3A
RGBrgb(126, 27, 58)
HSLhsl(341, 65%, 30%)
HSVhsv(341, 79%, 49%)
CMYKcmyk(0%, 78.6%, 54%, 50.6%)
CIE-LABlab(28.18, 43.69, 6.75)
CIE-LCHlch(28.18, 44.21, 8.78°)
OKLaboklab(39.83% 0.1332 0.0174)
OKLCHoklch(39.83% 0.134 7.4)
XYZxyz(9.7607, 5.5263, 4.5549)
Luminance0.0553 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B3A #1B7E5F
analogous
#7E1B6C #7E1B3A #7E2D1B
triadic
#7E1B3A #3A7E1B #1B3A7E
tetradic
#7E1B3A #6C7E1B #1B7E5F #2D1B7E
square
#7E1B3A #6C7E1B #1B7E5F #2D1B7E
split-complementary
#7E1B3A #1B7E2D #1B6C7E
monochromatic
#19050C #4C1023 #7E1B3A #B02651 #D63E6D

Accessibility & contrast

On white

9.98
#7E1B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E1B3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B3A
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B3A#FFFFFF#000000##FFFFFF
##7E1B3A1.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34363B
Deuteranopia (green-blind)
#4E4A38
Tritanopia (blue-blind)
#8A0028
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1b3a;
/* rgb */ color: rgb(126, 27, 58);
/* oklch */ color: oklch(39.8% 0.134 7.4);
Tailwind
colors: {
  custom: {
    50: '#a9616f',
    500: '#7e1b3a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b3a;
$custom-light: #a9616f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b3a",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 58
  },
  "hsl": {
    "h": 341.212,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.39825,
    "c": 0.13429,
    "h": 7.4
  },
  "luminance": 0.05525
}

Semantic roles & 50–950 ramp

primary
#7E1B3A
secondary
#43B28F
accent
#E8B340
background
#FBF6F6
surface
#F6EBEC
border
#D0C6C7
text
#110507
muted
#807A7A

Preview Lab

Preview with #7E1B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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