#7E212B#7E212B

#7E212B is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.1% C 0.127 H 19.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#7E212B
RGBrgb(126, 33, 43)
HSLhsl(354, 58%, 31%)
HSVhsv(354, 74%, 49%)
CMYKcmyk(0%, 73.8%, 65.9%, 50.6%)
CIE-LABlab(28.64, 40.32, 17.37)
CIE-LCHlch(28.64, 43.90, 23.31°)
OKLaboklab(40.05% 0.1197 0.0417)
OKLCHoklch(40.05% 0.127 19.2)
XYZxyz(9.5851, 5.6991, 2.8804)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E212B #217E74
analogous
#7E2159 #7E212B #7E4521
triadic
#7E212B #2B7E21 #212B7E
tetradic
#7E212B #597E21 #217E74 #45217E
square
#7E212B #597E21 #217E74 #45217E
split-complementary
#7E212B #217E45 #21597E
monochromatic
#1D080A #4E141A #7E212B #AE2E3C #D04A58

Accessibility & contrast

On white

9.81
#7E212B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E212B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E212B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E212B#FFFFFF#000000##FFFFFF
##7E212B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A372B
Deuteranopia (green-blind)
#524B28
Tritanopia (blue-blind)
#8B0425
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e212b;
/* rgb */ color: rgb(126, 33, 43);
/* oklch */ color: oklch(40.1% 0.127 19.2);
Tailwind
colors: {
  custom: {
    50: '#aa6464',
    500: '#7e212b',
    950: '#000000',
  },
}
SCSS
$custom: #7e212b;
$custom-light: #aa6464;
$custom-dark: #000000;
JSON
{
  "hex": "#7e212b",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 43
  },
  "hsl": {
    "h": 353.548,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4005,
    "c": 0.12674,
    "h": 19.2
  },
  "luminance": 0.05698
}

Semantic roles & 50–950 ramp

primary
#7E212B
secondary
#4AB1A6
accent
#E2D146
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7E212B

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

Preview Lab → · Contrast checker → · Palette generator →

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