#7E1F27#7E1F27

#7E1F27 is a dark, vivid red. Relative luminance 0.056; OKLCH L 39.8% C 0.129 H 20.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#7E1F27
RGBrgb(126, 31, 39)
HSLhsl(355, 61%, 31%)
HSVhsv(355, 75%, 49%)
CMYKcmyk(0%, 75.4%, 69%, 50.6%)
CIE-LABlab(28.28, 40.85, 19.55)
CIE-LCHlch(28.28, 45.29, 25.57°)
OKLaboklab(39.76% 0.1205 0.0461)
OKLCHoklch(39.76% 0.129 20.9)
XYZxyz(9.4614, 5.5635, 2.4947)
Luminance0.0556 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F27 #1F7E76
analogous
#7E1F56 #7E1F27 #7E461F
triadic
#7E1F27 #277E1F #1F277E
tetradic
#7E1F27 #567E1F #1F7E76 #461F7E
square
#7E1F27 #567E1F #1F7E76 #461F7E
split-complementary
#7E1F27 #1F7E46 #1F567E
monochromatic
#1C0709 #4D1318 #7E1F27 #AF2B36 #D14652

Accessibility & contrast

On white

9.94
#7E1F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E1F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F27
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F27#FFFFFF#000000##FFFFFF
##7E1F271.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3627
Deuteranopia (green-blind)
#524A24
Tritanopia (blue-blind)
#8B0023
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f27;
/* rgb */ color: rgb(126, 31, 39);
/* oklch */ color: oklch(39.8% 0.129 20.9);
Tailwind
colors: {
  custom: {
    50: '#aa6361',
    500: '#7e1f27',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f27;
$custom-light: #aa6361;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f27",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 39
  },
  "hsl": {
    "h": 354.947,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39761,
    "c": 0.12904,
    "h": 20.9
  },
  "luminance": 0.05562
}

Semantic roles & 50–950 ramp

primary
#7E1F27
secondary
#48B1A8
accent
#E4D644
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7E1F27

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

Preview Lab → · Contrast checker → · Palette generator →

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