#7E1F23#7E1F23

#7E1F23 is a dark, vivid red. Relative luminance 0.055; OKLCH L 39.7% C 0.129 H 23.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#7E1F23
RGBrgb(126, 31, 35)
HSLhsl(357, 61%, 31%)
HSVhsv(357, 75%, 49%)
CMYKcmyk(0%, 75.4%, 72.2%, 50.6%)
CIE-LABlab(28.22, 40.62, 22.06)
CIE-LCHlch(28.22, 46.23, 28.51°)
OKLaboklab(39.69% 0.1189 0.051)
OKLCHoklch(39.69% 0.129 23.2)
XYZxyz(9.3986, 5.5384, 2.1639)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F23 #1F7E7A
analogous
#7E1F52 #7E1F23 #7E4A1F
triadic
#7E1F23 #237E1F #1F237E
tetradic
#7E1F23 #527E1F #1F7E7A #4A1F7E
square
#7E1F23 #527E1F #1F7E7A #4A1F7E
split-complementary
#7E1F23 #1F7E4A #1F527E
monochromatic
#1C0708 #4D1315 #7E1F23 #AF2B31 #D1464C

Accessibility & contrast

On white

9.96
#7E1F23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F23
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F23#FFFFFF#000000##FFFFFF
##7E1F231.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3622
Deuteranopia (green-blind)
#524A20
Tritanopia (blue-blind)
#8B0021
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f23;
/* rgb */ color: rgb(126, 31, 35);
/* oklch */ color: oklch(39.7% 0.129 23.2);
Tailwind
colors: {
  custom: {
    50: '#aa625e',
    500: '#7e1f23',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f23;
$custom-light: #aa625e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f23",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 35
  },
  "hsl": {
    "h": 357.474,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39689,
    "c": 0.12939,
    "h": 23.2
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#7E1F23
secondary
#48B1AD
accent
#E4DD44
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E1F23

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

Preview Lab → · Contrast checker → · Palette generator →

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