#7E1F28#7E1F28

#7E1F28 is a dark, vivid red. Relative luminance 0.056; OKLCH L 39.8% C 0.129 H 20.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#7E1F28
RGBrgb(126, 31, 40)
HSLhsl(354, 61%, 31%)
HSVhsv(354, 75%, 49%)
CMYKcmyk(0%, 75.4%, 68.3%, 50.6%)
CIE-LABlab(28.30, 40.91, 18.91)
CIE-LCHlch(28.30, 45.07, 24.81°)
OKLaboklab(39.78% 0.121 0.0448)
OKLCHoklch(39.78% 0.129 20.3)
XYZxyz(9.4782, 5.5702, 2.5831)
Luminance0.0557 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F28 #1F7E75
analogous
#7E1F57 #7E1F28 #7E451F
triadic
#7E1F28 #287E1F #1F287E
tetradic
#7E1F28 #577E1F #1F7E75 #451F7E
square
#7E1F28 #577E1F #1F7E75 #451F7E
split-complementary
#7E1F28 #1F7E45 #1F577E
monochromatic
#1C0709 #4D1318 #7E1F28 #AF2B38 #D14653

Accessibility & contrast

On white

9.93
#7E1F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E1F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F28
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F28#FFFFFF#000000##FFFFFF
##7E1F281.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3628
Deuteranopia (green-blind)
#524A25
Tritanopia (blue-blind)
#8B0023
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f28;
/* rgb */ color: rgb(126, 31, 40);
/* oklch */ color: oklch(39.8% 0.129 20.3);
Tailwind
colors: {
  custom: {
    50: '#aa6361',
    500: '#7e1f28',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f28;
$custom-light: #aa6361;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f28",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 40
  },
  "hsl": {
    "h": 354.316,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3978,
    "c": 0.12898,
    "h": 20.3
  },
  "luminance": 0.05569
}

Semantic roles & 50–950 ramp

primary
#7E1F28
secondary
#48B1A7
accent
#E4D544
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7E1F28

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

Preview Lab → · Contrast checker → · Palette generator →

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