#7E1221#7E1221

#7E1221 is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.5% C 0.141 H 20.6°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#7E1221
RGBrgb(126, 18, 33)
HSLhsl(352, 75%, 28%)
HSVhsv(352, 86%, 49%)
CMYKcmyk(0%, 85.7%, 73.8%, 50.6%)
CIE-LABlab(26.68, 44.76, 21.52)
CIE-LCHlch(26.68, 49.66, 25.68°)
OKLaboklab(38.54% 0.1316 0.0495)
OKLCHoklch(38.54% 0.141 20.6)
XYZxyz(9.0961, 4.9795, 1.9207)
Luminance0.0498 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1221 #127E6F
analogous
#7E1257 #7E1221 #7E3912
triadic
#7E1221 #217E12 #12217E
tetradic
#7E1221 #577E12 #127E6F #39127E
square
#7E1221 #577E12 #127E6F #39127E
split-complementary
#7E1221 #127E39 #12577E
monochromatic
#1B0407 #480A13 #7E1221 #B41A2F #E12A43

Accessibility & contrast

On white

10.52
#7E1221 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#7E1221 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1221
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1221#FFFFFF#000000##FFFFFF
##7E12211.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1221;
/* rgb */ color: rgb(126, 18, 33);
/* oklch */ color: oklch(38.5% 0.141 20.6);
Tailwind
colors: {
  custom: {
    50: '#ab5d5c',
    500: '#7e1221',
    950: '#000000',
  },
}
SCSS
$custom: #7e1221;
$custom-light: #ab5d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1221",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 33
  },
  "hsl": {
    "h": 351.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38536,
    "c": 0.14059,
    "h": 20.6
  },
  "luminance": 0.04978
}

Semantic roles & 50–950 ramp

primary
#7E1221
secondary
#38B4A3
accent
#F2D836
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7E1221

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

Preview Lab → · Contrast checker → · Palette generator →

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