#7E1A2F#7E1A2F

#7E1A2F is a dark, vivid red. Relative luminance 0.054; OKLCH L 39.4% C 0.134 H 14.4°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#7E1A2F
RGBrgb(126, 26, 47)
HSLhsl(347, 66%, 30%)
HSVhsv(347, 79%, 49%)
CMYKcmyk(0%, 79.4%, 62.7%, 50.6%)
CIE-LABlab(27.79, 43.17, 13.61)
CIE-LCHlch(27.79, 45.27, 17.49°)
OKLaboklab(39.45% 0.1297 0.0333)
OKLCHoklch(39.45% 0.134 14.4)
XYZxyz(9.4876, 5.3810, 3.2278)
Luminance0.0538 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A2F #1A7E69
analogous
#7E1A61 #7E1A2F #7E371A
triadic
#7E1A2F #2F7E1A #1A2F7E
tetradic
#7E1A2F #617E1A #1A7E69 #371A7E
square
#7E1A2F #617E1A #1A7E69 #371A7E
split-complementary
#7E1A2F #1A7E37 #1A617E
monochromatic
#190509 #4B101C #7E1A2F #B12442 #D73C5C

Accessibility & contrast

On white

10.12
#7E1A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1A2F
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A2F#FFFFFF#000000##FFFFFF
##7E1A2F1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36342F
Deuteranopia (green-blind)
#4F492C
Tritanopia (blue-blind)
#8A0023
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1a2f;
/* rgb */ color: rgb(126, 26, 47);
/* oklch */ color: oklch(39.4% 0.134 14.4);
Tailwind
colors: {
  custom: {
    50: '#aa6167',
    500: '#7e1a2f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a2f;
$custom-light: #aa6167;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a2f",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 47
  },
  "hsl": {
    "h": 347.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39448,
    "c": 0.13391,
    "h": 14.4
  },
  "luminance": 0.0538
}

Semantic roles & 50–950 ramp

primary
#7E1A2F
secondary
#42B29A
accent
#E9C53F
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110506
muted
#807A7A

Preview Lab

Preview with #7E1A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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