#7E212A#7E212A

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

Color values

HEX#7E212A
RGBrgb(126, 33, 42)
HSLhsl(354, 58%, 31%)
HSVhsv(354, 74%, 49%)
CMYKcmyk(0%, 73.8%, 66.7%, 50.6%)
CIE-LABlab(28.62, 40.25, 18.01)
CIE-LCHlch(28.62, 44.10, 24.10°)
OKLaboklab(40.03% 0.1193 0.043)
OKLCHoklch(40.03% 0.127 19.8)
XYZxyz(9.5670, 5.6919, 2.7849)
Luminance0.0569 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E212A #217E75
analogous
#7E2158 #7E212A #7E4621
triadic
#7E212A #2A7E21 #212A7E
tetradic
#7E212A #587E21 #217E75 #46217E
square
#7E212A #587E21 #217E75 #46217E
split-complementary
#7E212A #217E46 #21587E
monochromatic
#1D080A #4E141A #7E212A #AE2E3A #D04A57

Accessibility & contrast

On white

9.82
#7E212A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E212A
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E212A#FFFFFF#000000##FFFFFF
##7E212A1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B372A
Deuteranopia (green-blind)
#524B27
Tritanopia (blue-blind)
#8B0425
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e212a;
/* rgb */ color: rgb(126, 33, 42);
/* oklch */ color: oklch(40.0% 0.127 19.8);
Tailwind
colors: {
  custom: {
    50: '#aa6463',
    500: '#7e212a',
    950: '#000000',
  },
}
SCSS
$custom: #7e212a;
$custom-light: #aa6463;
$custom-dark: #000000;
JSON
{
  "hex": "#7e212a",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 42
  },
  "hsl": {
    "h": 354.194,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4003,
    "c": 0.12679,
    "h": 19.8
  },
  "luminance": 0.05691
}

Semantic roles & 50–950 ramp

primary
#7E212A
secondary
#4AB1A7
accent
#E2D346
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7E212A

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

Preview Lab → · Contrast checker → · Palette generator →

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