#7E1A21

A color in the Red, Pink family

#7e1a21 is a color in the Red, Pink family: RGB(126, 26, 33), HSL(356°, 66%, 30%), CMYK(0%, 79%, 74%, 51%). Closest named color: maroon. Contrast is 10.21:1 on white and 2.06:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#7e1a21
RGBrgb(126 26 33)
RGB (legacy)rgb(126, 26, 33)
RGB %rgb(49% 10% 13%)
HSLhsl(356 66% 30%)
HSV / HSBhsv(356, 79%, 49%)
HWBhwb(356 10% 51%)
CMYKcmyk(0%, 79%, 74%, 51%)
CIELAB (D50)lab(28.05 42.79 23.63)
LCHlch(28.05 48.88 28.91)
OKLaboklab(0.3917 0.1239 0.0517)
OKLCHoklch(0.3917 0.1342 22.66)
Decimal8264225

Properties

Color ToneRed, Pink
Closest named colormaroon ΔE 3
Closest web-safe color#663333
Hue356°
Saturation (HSL / HSV)66% / 79%
Lightness (HSL)30%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)22% / 19%
Relative luminance (WCAG)0.0528
Red / Green / Blue126 / 26 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.21:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.06:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 92.4 / -10 · As background with white / black text: Lc -96.6 / 11.5

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #7e1a21;
  --color-brand-oklch: oklch(39.17% 0.1342 22.66);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(126 26 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7e1a21] text-[#7e1a21] border-[#7e1a21]">