#7E1823#7E1823

#7E1823 is a dark, vivid red. Relative luminance 0.052; OKLCH L 39.0% C 0.136 H 21.0°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#7E1823
RGBrgb(126, 24, 35)
HSLhsl(354, 68%, 29%)
HSVhsv(354, 81%, 49%)
CMYKcmyk(0%, 81%, 72.2%, 50.6%)
CIE-LABlab(27.33, 43.10, 20.99)
CIE-LCHlch(27.33, 47.94, 25.97°)
OKLaboklab(39.03% 0.1268 0.0487)
OKLCHoklch(39.03% 0.136 21)
XYZxyz(9.2352, 5.2117, 2.1095)
Luminance0.0521 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1823 #187E73
analogous
#7E1856 #7E1823 #7E4018
triadic
#7E1823 #237E18 #18237E
tetradic
#7E1823 #567E18 #187E73 #40187E
square
#7E1823 #567E18 #187E73 #40187E
split-complementary
#7E1823 #187E40 #18567E
monochromatic
#1A0507 #4B0E15 #7E1823 #B12231 #D93749

Accessibility & contrast

On white

10.28
#7E1823 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7E1823 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1823
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1823#FFFFFF#000000##FFFFFF
##7E18231.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373323
Deuteranopia (green-blind)
#504820
Tritanopia (blue-blind)
#8B001D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1823;
/* rgb */ color: rgb(126, 24, 35);
/* oklch */ color: oklch(39.0% 0.136 21.0);
Tailwind
colors: {
  custom: {
    50: '#ab605d',
    500: '#7e1823',
    950: '#000000',
  },
}
SCSS
$custom: #7e1823;
$custom-light: #ab605d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1823",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 35
  },
  "hsl": {
    "h": 353.529,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3903,
    "c": 0.13581,
    "h": 21
  },
  "luminance": 0.0521
}

Semantic roles & 50–950 ramp

primary
#7E1823
secondary
#3FB2A6
accent
#EBD83D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7E1823

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

Preview Lab → · Contrast checker → · Palette generator →

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