#7E1F2E#7E1F2E

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

Color values

HEX#7E1F2E
RGBrgb(126, 31, 46)
HSLhsl(351, 61%, 31%)
HSVhsv(351, 75%, 49%)
CMYKcmyk(0%, 75.4%, 63.5%, 50.6%)
CIE-LABlab(28.42, 41.30, 15.10)
CIE-LCHlch(28.42, 43.98, 20.08°)
OKLaboklab(39.9% 0.1235 0.0367)
OKLCHoklch(39.9% 0.129 16.6)
XYZxyz(9.5883, 5.6142, 3.1630)
Luminance0.0561 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F2E #1F7E6F
analogous
#7E1F5D #7E1F2E #7E3F1F
triadic
#7E1F2E #2E7E1F #1F2E7E
tetradic
#7E1F2E #5D7E1F #1F7E6F #3F1F7E
square
#7E1F2E #5D7E1F #1F7E6F #3F1F7E
split-complementary
#7E1F2E #1F7E3F #1F5D7E
monochromatic
#1C070A #4D131C #7E1F2E #AF2B40 #D1465C

Accessibility & contrast

On white

9.89
#7E1F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F2E
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F2E#FFFFFF#000000##FFFFFF
##7E1F2E1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39362E
Deuteranopia (green-blind)
#514A2B
Tritanopia (blue-blind)
#8A0125
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f2e;
/* rgb */ color: rgb(126, 31, 46);
/* oklch */ color: oklch(39.9% 0.129 16.6);
Tailwind
colors: {
  custom: {
    50: '#a96366',
    500: '#7e1f2e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f2e;
$custom-light: #a96366;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f2e",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 46
  },
  "hsl": {
    "h": 350.526,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39904,
    "c": 0.12883,
    "h": 16.6
  },
  "luminance": 0.05613
}

Semantic roles & 50–950 ramp

primary
#7E1F2E
secondary
#48B1A0
accent
#E4CA44
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110605
muted
#807A7A

Preview Lab

Preview with #7E1F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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