#7E1B23#7E1B23

#7E1B23 is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.3% C 0.133 H 21.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#7E1B23
RGBrgb(126, 27, 35)
HSLhsl(355, 65%, 30%)
HSVhsv(355, 79%, 49%)
CMYKcmyk(0%, 78.6%, 72.2%, 50.6%)
CIE-LABlab(27.69, 42.09, 21.43)
CIE-LCHlch(27.69, 47.23, 26.98°)
OKLaboklab(39.3% 0.1236 0.0496)
OKLCHoklch(39.3% 0.133 21.9)
XYZxyz(9.3005, 5.3423, 2.1312)
Luminance0.0534 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B23 #1B7E76
analogous
#7E1B54 #7E1B23 #7E451B
triadic
#7E1B23 #237E1B #1B237E
tetradic
#7E1B23 #547E1B #1B7E76 #451B7E
square
#7E1B23 #547E1B #1B7E76 #451B7E
split-complementary
#7E1B23 #1B7E45 #1B547E
monochromatic
#190507 #4C1015 #7E1B23 #B02631 #D63E4A

Accessibility & contrast

On white

10.15
#7E1B23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#7E1B23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B23
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B23#FFFFFF#000000##FFFFFF
##7E1B231.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383422
Deuteranopia (green-blind)
#514920
Tritanopia (blue-blind)
#8B001F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1b23;
/* rgb */ color: rgb(126, 27, 35);
/* oklch */ color: oklch(39.3% 0.133 21.9);
Tailwind
colors: {
  custom: {
    50: '#ab615d',
    500: '#7e1b23',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b23;
$custom-light: #ab615d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b23",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 35
  },
  "hsl": {
    "h": 355.152,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.39297,
    "c": 0.13317,
    "h": 21.9
  },
  "luminance": 0.05341
}

Semantic roles & 50–950 ramp

primary
#7E1B23
secondary
#43B2A9
accent
#E8DA40
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110504
muted
#807A79

Preview Lab

Preview with #7E1B23

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

Preview Lab → · Contrast checker → · Palette generator →

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