#7E271F#7E271F

#7E271F is a dark, vivid red. Relative luminance 0.060; OKLCH L 40.5% C 0.122 H 28.8°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#7E271F
RGBrgb(126, 39, 31)
HSLhsl(5, 61%, 31%)
HSVhsv(5, 75%, 49%)
CMYKcmyk(0%, 69%, 75.4%, 50.6%)
CIE-LABlab(29.38, 37.07, 25.94)
CIE-LCHlch(29.38, 45.25, 34.98°)
OKLaboklab(40.54% 0.1068 0.0587)
OKLCHoklch(40.54% 0.122 28.8)
XYZxyz(9.5781, 5.9870, 1.9473)
Luminance0.0599 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E271F #1F767E
analogous
#7E1F46 #7E271F #7E561F
triadic
#7E271F #1F7E27 #271F7E
tetradic
#7E271F #467E1F #1F767E #561F7E
square
#7E271F #467E1F #1F767E #561F7E
split-complementary
#7E271F #1F7E56 #1F467E
monochromatic
#1C0907 #4D1813 #7E271F #AF362B #D15246

Accessibility & contrast

On white

9.56
#7E271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7E271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E271F
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E271F#FFFFFF#000000##FFFFFF
##7E271F1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F391D
Deuteranopia (green-blind)
#554C1C
Tritanopia (blue-blind)
#8B0E26
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e271f;
/* rgb */ color: rgb(126, 39, 31);
/* oklch */ color: oklch(40.5% 0.122 28.8);
Tailwind
colors: {
  custom: {
    50: '#aa665b',
    500: '#7e271f',
    950: '#000000',
  },
}
SCSS
$custom: #7e271f;
$custom-light: #aa665b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e271f",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 5.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4054,
    "c": 0.12187,
    "h": 28.8
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#7E271F
secondary
#48A8B1
accent
#D6E444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E271F

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

Preview Lab → · Contrast checker → · Palette generator →

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