#7E271E#7E271E

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

Color values

HEX#7E271E
RGBrgb(126, 39, 30)
HSLhsl(6, 62%, 31%)
HSVhsv(6, 76%, 49%)
CMYKcmyk(0%, 69%, 76.2%, 50.6%)
CIE-LABlab(29.37, 37.02, 26.53)
CIE-LCHlch(29.37, 45.55, 35.63°)
OKLaboklab(40.53% 0.1064 0.0598)
OKLCHoklch(40.53% 0.122 29.3)
XYZxyz(9.5651, 5.9818, 1.8790)
Luminance0.0598 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E271E #1E757E
analogous
#7E1E45 #7E271E #7E571E
triadic
#7E271E #1E7E27 #271E7E
tetradic
#7E271E #457E1E #1E757E #571E7E
square
#7E271E #457E1E #1E757E #571E7E
split-complementary
#7E271E #1E7E57 #1E457E
monochromatic
#1B0806 #4D1812 #7E271E #AF362A #D25144

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E271E#FFFFFF#000000##FFFFFF
##7E271E1.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)
#3F391C
Deuteranopia (green-blind)
#554C1B
Tritanopia (blue-blind)
#8B0E26
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e271e;
/* rgb */ color: rgb(126, 39, 30);
/* oklch */ color: oklch(40.5% 0.122 29.3);
Tailwind
colors: {
  custom: {
    50: '#aa665a',
    500: '#7e271e',
    950: '#000000',
  },
}
SCSS
$custom: #7e271e;
$custom-light: #aa665a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e271e",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 5.625,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40526,
    "c": 0.12207,
    "h": 29.3
  },
  "luminance": 0.0598
}

Semantic roles & 50–950 ramp

primary
#7E271E
secondary
#47A7B1
accent
#D5E543
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E271E

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

Preview Lab → · Contrast checker → · Palette generator →

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