#7E271B#7E271B

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

Color values

HEX#7E271B
RGBrgb(126, 39, 27)
HSLhsl(7, 65%, 30%)
HSVhsv(7, 79%, 49%)
CMYKcmyk(0%, 69%, 78.6%, 50.6%)
CIE-LABlab(29.33, 36.89, 28.30)
CIE-LCHlch(29.33, 46.49, 37.49°)
OKLaboklab(40.49% 0.1053 0.0628)
OKLCHoklch(40.49% 0.123 30.8)
XYZxyz(9.5286, 5.9672, 1.6867)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E271B #1B727E
analogous
#7E1B40 #7E271B #7E591B
triadic
#7E271B #1B7E27 #271B7E
tetradic
#7E271B #407E1B #1B727E #591B7E
square
#7E271B #407E1B #1B727E #591B7E
split-complementary
#7E271B #1B7E59 #1B407E
monochromatic
#190805 #4C1710 #7E271B #B03726 #D6503E

Accessibility & contrast

On white

9.58
#7E271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7E271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E271B
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E271B#FFFFFF#000000##FFFFFF
##7E271B1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403919
Deuteranopia (green-blind)
#554C18
Tritanopia (blue-blind)
#8B0D25
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e271b;
/* rgb */ color: rgb(126, 39, 27);
/* oklch */ color: oklch(40.5% 0.123 30.8);
Tailwind
colors: {
  custom: {
    50: '#ab6658',
    500: '#7e271b',
    950: '#000000',
  },
}
SCSS
$custom: #7e271b;
$custom-light: #ab6658;
$custom-dark: #000000;
JSON
{
  "hex": "#7e271b",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 7.273,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.40487,
    "c": 0.12266,
    "h": 30.8
  },
  "luminance": 0.05966
}

Semantic roles & 50–950 ramp

primary
#7E271B
secondary
#43A4B2
accent
#D3E840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E271B

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

Preview Lab → · Contrast checker → · Palette generator →

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