#7E1821#7E1821

#7E1821 is a dark, vivid red. Relative luminance 0.052; OKLCH L 39.0% C 0.136 H 22.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#7E1821
RGBrgb(126, 24, 33)
HSLhsl(355, 68%, 29%)
HSVhsv(355, 81%, 49%)
CMYKcmyk(0%, 81%, 73.8%, 50.6%)
CIE-LABlab(27.30, 43.00, 22.26)
CIE-LCHlch(27.30, 48.42, 27.37°)
OKLaboklab(39% 0.126 0.0511)
OKLCHoklch(39% 0.136 22.1)
XYZxyz(9.2064, 5.2001, 1.9575)
Luminance0.0520 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1821 #187E75
analogous
#7E1854 #7E1821 #7E4218
triadic
#7E1821 #217E18 #18217E
tetradic
#7E1821 #547E18 #187E75 #42187E
square
#7E1821 #547E18 #187E75 #42187E
split-complementary
#7E1821 #187E42 #18547E
monochromatic
#1A0507 #4B0E14 #7E1821 #B1222E #D93746

Accessibility & contrast

On white

10.30
#7E1821 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7E1821 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1821
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1821#FFFFFF#000000##FFFFFF
##7E18211.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373320
Deuteranopia (green-blind)
#50481E
Tritanopia (blue-blind)
#8B001C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1821;
/* rgb */ color: rgb(126, 24, 33);
/* oklch */ color: oklch(39.0% 0.136 22.1);
Tailwind
colors: {
  custom: {
    50: '#ab5f5c',
    500: '#7e1821',
    950: '#000000',
  },
}
SCSS
$custom: #7e1821;
$custom-light: #ab5f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1821",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 33
  },
  "hsl": {
    "h": 354.706,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38996,
    "c": 0.13595,
    "h": 22.1
  },
  "luminance": 0.05199
}

Semantic roles & 50–950 ramp

primary
#7E1821
secondary
#3FB2A8
accent
#EBDC3D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7E1821

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

Preview Lab → · Contrast checker → · Palette generator →

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