#7E212F#7E212F

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

Color values

HEX#7E212F
RGBrgb(126, 33, 47)
HSLhsl(351, 58%, 31%)
HSVhsv(351, 74%, 49%)
CMYKcmyk(0%, 73.8%, 62.7%, 50.6%)
CIE-LABlab(28.72, 40.59, 14.84)
CIE-LCHlch(28.72, 43.22, 20.08°)
OKLaboklab(40.14% 0.1214 0.0362)
OKLCHoklch(40.14% 0.127 16.6)
XYZxyz(9.6621, 5.7299, 3.2860)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E212F #217E70
analogous
#7E215D #7E212F #7E4121
triadic
#7E212F #2F7E21 #212F7E
tetradic
#7E212F #5D7E21 #217E70 #41217E
square
#7E212F #5D7E21 #217E70 #41217E
split-complementary
#7E212F #217E41 #215D7E
monochromatic
#1D080B #4E141D #7E212F #AE2E41 #D04A5E

Accessibility & contrast

On white

9.79
#7E212F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7E212F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E212F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E212F#FFFFFF#000000##FFFFFF
##7E212F1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A372F
Deuteranopia (green-blind)
#514B2D
Tritanopia (blue-blind)
#8A0727
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e212f;
/* rgb */ color: rgb(126, 33, 47);
/* oklch */ color: oklch(40.1% 0.127 16.6);
Tailwind
colors: {
  custom: {
    50: '#a96467',
    500: '#7e212f',
    950: '#000000',
  },
}
SCSS
$custom: #7e212f;
$custom-light: #a96467;
$custom-dark: #000000;
JSON
{
  "hex": "#7e212f",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 47
  },
  "hsl": {
    "h": 350.968,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40136,
    "c": 0.12668,
    "h": 16.6
  },
  "luminance": 0.05729
}

Semantic roles & 50–950 ramp

primary
#7E212F
secondary
#4AB1A1
accent
#E2CA46
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7E212F

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

Preview Lab → · Contrast checker → · Palette generator →

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