#7E1F2C#7E1F2C

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

Color values

HEX#7E1F2C
RGBrgb(126, 31, 44)
HSLhsl(352, 61%, 31%)
HSVhsv(352, 75%, 49%)
CMYKcmyk(0%, 75.4%, 65.1%, 50.6%)
CIE-LABlab(28.38, 41.17, 16.37)
CIE-LCHlch(28.38, 44.30, 21.69°)
OKLaboklab(39.86% 0.1226 0.0395)
OKLCHoklch(39.86% 0.129 17.8)
XYZxyz(9.5498, 5.5988, 2.9602)
Luminance0.0560 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F2C #1F7E71
analogous
#7E1F5B #7E1F2C #7E411F
triadic
#7E1F2C #2C7E1F #1F2C7E
tetradic
#7E1F2C #5B7E1F #1F7E71 #411F7E
square
#7E1F2C #5B7E1F #1F7E71 #411F7E
split-complementary
#7E1F2C #1F7E41 #1F5B7E
monochromatic
#1C070A #4D131B #7E1F2C #AF2B3D #D14659

Accessibility & contrast

On white

9.91
#7E1F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F2C
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F2C#FFFFFF#000000##FFFFFF
##7E1F2C1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39362C
Deuteranopia (green-blind)
#514A29
Tritanopia (blue-blind)
#8B0025
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f2c;
/* rgb */ color: rgb(126, 31, 44);
/* oklch */ color: oklch(39.9% 0.129 17.8);
Tailwind
colors: {
  custom: {
    50: '#aa6364',
    500: '#7e1f2c',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f2c;
$custom-light: #aa6364;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f2c",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 44
  },
  "hsl": {
    "h": 351.789,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3986,
    "c": 0.12883,
    "h": 17.8
  },
  "luminance": 0.05597
}

Semantic roles & 50–950 ramp

primary
#7E1F2C
secondary
#48B1A3
accent
#E4CE44
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110605
muted
#807A7A

Preview Lab

Preview with #7E1F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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