#7E1828#7E1828

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

Color values

HEX#7E1828
RGBrgb(126, 24, 40)
HSLhsl(351, 68%, 29%)
HSVhsv(351, 81%, 49%)
CMYKcmyk(0%, 81%, 68.3%, 50.6%)
CIE-LABlab(27.42, 43.38, 17.80)
CIE-LCHlch(27.42, 46.89, 22.31°)
OKLaboklab(39.12% 0.1289 0.0423)
OKLCHoklch(39.12% 0.136 18.2)
XYZxyz(9.3148, 5.2435, 2.5287)
Luminance0.0524 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1828 #187E6E
analogous
#7E185B #7E1828 #7E3B18
triadic
#7E1828 #287E18 #18287E
tetradic
#7E1828 #5B7E18 #187E6E #3B187E
square
#7E1828 #5B7E18 #187E6E #3B187E
split-complementary
#7E1828 #187E3B #185B7E
monochromatic
#1A0508 #4B0E18 #7E1828 #B12238 #D93751

Accessibility & contrast

On white

10.25
#7E1828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7E1828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1828
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1828#FFFFFF#000000##FFFFFF
##7E18281.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1828;
/* rgb */ color: rgb(126, 24, 40);
/* oklch */ color: oklch(39.1% 0.136 18.2);
Tailwind
colors: {
  custom: {
    50: '#aa6061',
    500: '#7e1828',
    950: '#000000',
  },
}
SCSS
$custom: #7e1828;
$custom-light: #aa6061;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1828",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 40
  },
  "hsl": {
    "h": 350.588,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39124,
    "c": 0.13561,
    "h": 18.2
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#7E1828
secondary
#3FB2A0
accent
#EBD03D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110505
muted
#807979

Preview Lab

Preview with #7E1828

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

Preview Lab → · Contrast checker → · Palette generator →

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