#7E1728#7E1728

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

Color values

HEX#7E1728
RGBrgb(126, 23, 40)
HSLhsl(350, 69%, 29%)
HSVhsv(350, 82%, 49%)
CMYKcmyk(0%, 81.7%, 68.3%, 50.6%)
CIE-LABlab(27.31, 43.70, 17.65)
CIE-LCHlch(27.31, 47.13, 22.00°)
OKLaboklab(39.04% 0.1299 0.042)
OKLCHoklch(39.04% 0.136 17.9)
XYZxyz(9.2946, 5.2030, 2.5220)
Luminance0.0520 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1728 #177E6D
analogous
#7E175C #7E1728 #7E3A17
triadic
#7E1728 #287E17 #17287E
tetradic
#7E1728 #5C7E17 #177E6D #3A177E
square
#7E1728 #5C7E17 #177E6D #3A177E
split-complementary
#7E1728 #177E3A #175C7E
monochromatic
#1A0508 #4A0E18 #7E1728 #B22038 #DA3550

Accessibility & contrast

On white

10.29
#7E1728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1728
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1728#FFFFFF#000000##FFFFFF
##7E17281.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363328
Deuteranopia (green-blind)
#4F4825
Tritanopia (blue-blind)
#8B001F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1728;
/* rgb */ color: rgb(126, 23, 40);
/* oklch */ color: oklch(39.0% 0.136 17.9);
Tailwind
colors: {
  custom: {
    50: '#aa5f61',
    500: '#7e1728',
    950: '#000000',
  },
}
SCSS
$custom: #7e1728;
$custom-light: #aa5f61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1728",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 40
  },
  "hsl": {
    "h": 350.097,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39041,
    "c": 0.13647,
    "h": 17.9
  },
  "luminance": 0.05202
}

Semantic roles & 50–950 ramp

primary
#7E1728
secondary
#3EB39F
accent
#ECCF3C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110505
muted
#807979

Preview Lab

Preview with #7E1728

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

Preview Lab → · Contrast checker → · Palette generator →

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