#7E1C28#7E1C28

#7E1C28 is a dark, vivid red. Relative luminance 0.054; OKLCH L 39.5% C 0.132 H 19.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#7E1C28
RGBrgb(126, 28, 40)
HSLhsl(353, 64%, 30%)
HSVhsv(353, 78%, 49%)
CMYKcmyk(0%, 77.8%, 68.3%, 50.6%)
CIE-LABlab(27.90, 42.02, 18.41)
CIE-LCHlch(27.90, 45.88, 23.66°)
OKLaboklab(39.48% 0.1245 0.0437)
OKLCHoklch(39.48% 0.132 19.3)
XYZxyz(9.4035, 5.4207, 2.5582)
Luminance0.0542 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C28 #1C7E72
analogous
#7E1C59 #7E1C28 #7E411C
triadic
#7E1C28 #287E1C #1C287E
tetradic
#7E1C28 #597E1C #1C7E72 #411C7E
square
#7E1C28 #597E1C #1C7E72 #411C7E
split-complementary
#7E1C28 #1C7E41 #1C597E
monochromatic
#1A0608 #4C1118 #7E1C28 #B02738 #D54052

Accessibility & contrast

On white

10.08
#7E1C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#7E1C28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C28
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C28#FFFFFF#000000##FFFFFF
##7E1C281.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383528
Deuteranopia (green-blind)
#514925
Tritanopia (blue-blind)
#8B0021
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1c28;
/* rgb */ color: rgb(126, 28, 40);
/* oklch */ color: oklch(39.5% 0.132 19.3);
Tailwind
colors: {
  custom: {
    50: '#aa6161',
    500: '#7e1c28',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c28;
$custom-light: #aa6161;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c28",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 40
  },
  "hsl": {
    "h": 352.653,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39482,
    "c": 0.13193,
    "h": 19.3
  },
  "luminance": 0.05419
}

Semantic roles & 50–950 ramp

primary
#7E1C28
secondary
#44B2A4
accent
#E7D241
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110505
muted
#807A79

Preview Lab

Preview with #7E1C28

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

Preview Lab → · Contrast checker → · Palette generator →

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