#7E1827#7E1827

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

Color values

HEX#7E1827
RGBrgb(126, 24, 39)
HSLhsl(351, 68%, 29%)
HSVhsv(351, 81%, 49%)
CMYKcmyk(0%, 81%, 69%, 50.6%)
CIE-LABlab(27.40, 43.32, 18.44)
CIE-LCHlch(27.40, 47.08, 23.05°)
OKLaboklab(39.1% 0.1284 0.0436)
OKLCHoklch(39.1% 0.136 18.7)
XYZxyz(9.2981, 5.2368, 2.4403)
Luminance0.0524 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1827 #187E6F
analogous
#7E185A #7E1827 #7E3C18
triadic
#7E1827 #277E18 #18277E
tetradic
#7E1827 #5A7E18 #187E6F #3C187E
square
#7E1827 #5A7E18 #187E6F #3C187E
split-complementary
#7E1827 #187E3C #185A7E
monochromatic
#1A0508 #4B0E17 #7E1827 #B12237 #D9374F

Accessibility & contrast

On white

10.26
#7E1827 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1827
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1827#FFFFFF#000000##FFFFFF
##7E18271.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1827;
/* rgb */ color: rgb(126, 24, 39);
/* oklch */ color: oklch(39.1% 0.136 18.7);
Tailwind
colors: {
  custom: {
    50: '#aa6060',
    500: '#7e1827',
    950: '#000000',
  },
}
SCSS
$custom: #7e1827;
$custom-light: #aa6060;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1827",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 39
  },
  "hsl": {
    "h": 351.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39104,
    "c": 0.13563,
    "h": 18.7
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#7E1827
secondary
#3FB2A2
accent
#EBD13D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110505
muted
#807979

Preview Lab

Preview with #7E1827

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

Preview Lab → · Contrast checker → · Palette generator →

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