#7E1021#7E1021

#7E1021 is a dark, vivid red. Relative luminance 0.049; OKLCH L 38.4% C 0.142 H 20.2°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#7E1021
RGBrgb(126, 16, 33)
HSLhsl(351, 77%, 28%)
HSVhsv(351, 87%, 49%)
CMYKcmyk(0%, 87.3%, 73.8%, 50.6%)
CIE-LABlab(26.50, 45.26, 21.30)
CIE-LCHlch(26.50, 50.02, 25.20°)
OKLaboklab(38.4% 0.1332 0.049)
OKLCHoklch(38.4% 0.142 20.2)
XYZxyz(9.0651, 4.9175, 1.9104)
Luminance0.0492 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1021 #107E6D
analogous
#7E1058 #7E1021 #7E3610
triadic
#7E1021 #217E10 #10217E
tetradic
#7E1021 #587E10 #107E6D #36107E
square
#7E1021 #587E10 #107E6D #36107E
split-complementary
#7E1021 #107E36 #10587E
monochromatic
#1B0307 #480913 #7E1021 #B4172F #E32542

Accessibility & contrast

On white

10.59
#7E1021 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#7E1021 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1021
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1021#FFFFFF#000000##FFFFFF
##7E10211.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343021
Deuteranopia (green-blind)
#4F471D
Tritanopia (blue-blind)
#8B0018
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7e1021;
/* rgb */ color: rgb(126, 16, 33);
/* oklch */ color: oklch(38.4% 0.142 20.2);
Tailwind
colors: {
  custom: {
    50: '#ab5d5c',
    500: '#7e1021',
    950: '#000000',
  },
}
SCSS
$custom: #7e1021;
$custom-light: #ab5d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1021",
  "rgb": {
    "r": 126,
    "g": 16,
    "b": 33
  },
  "hsl": {
    "h": 350.727,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.38404,
    "c": 0.14195,
    "h": 20.2
  },
  "luminance": 0.04916
}

Semantic roles & 50–950 ramp

primary
#7E1021
secondary
#36B4A1
accent
#F4D634
background
#FBF5F5
surface
#F6E9E9
border
#D0C5C5
text
#110504
muted
#807979

Preview Lab

Preview with #7E1021

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

Preview Lab → · Contrast checker → · Palette generator →

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