#7E1F2D#7E1F2D

#7E1F2D is a dark, vivid red. Relative luminance 0.056; OKLCH L 39.9% C 0.129 H 17.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#7E1F2D
RGBrgb(126, 31, 45)
HSLhsl(351, 61%, 31%)
HSVhsv(351, 75%, 49%)
CMYKcmyk(0%, 75.4%, 64.3%, 50.6%)
CIE-LABlab(28.40, 41.23, 15.74)
CIE-LCHlch(28.40, 44.13, 20.89°)
OKLaboklab(39.88% 0.1231 0.0381)
OKLCHoklch(39.88% 0.129 17.2)
XYZxyz(9.5688, 5.6064, 3.0604)
Luminance0.0561 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F2D #1F7E70
analogous
#7E1F5C #7E1F2D #7E401F
triadic
#7E1F2D #2D7E1F #1F2D7E
tetradic
#7E1F2D #5C7E1F #1F7E70 #401F7E
square
#7E1F2D #5C7E1F #1F7E70 #401F7E
split-complementary
#7E1F2D #1F7E40 #1F5C7E
monochromatic
#1C070A #4D131B #7E1F2D #AF2B3F #D1465A

Accessibility & contrast

On white

9.90
#7E1F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#7E1F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F2D
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F2D#FFFFFF#000000##FFFFFF
##7E1F2D1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39362D
Deuteranopia (green-blind)
#514A2A
Tritanopia (blue-blind)
#8B0125
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f2d;
/* rgb */ color: rgb(126, 31, 45);
/* oklch */ color: oklch(39.9% 0.129 17.2);
Tailwind
colors: {
  custom: {
    50: '#aa6365',
    500: '#7e1f2d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f2d;
$custom-light: #aa6365;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f2d",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 45
  },
  "hsl": {
    "h": 351.158,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39882,
    "c": 0.12882,
    "h": 17.2
  },
  "luminance": 0.05605
}

Semantic roles & 50–950 ramp

primary
#7E1F2D
secondary
#48B1A2
accent
#E4CC44
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110605
muted
#807A7A

Preview Lab

Preview with #7E1F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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