#7E271C#7E271C

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

Color values

HEX#7E271C
RGBrgb(126, 39, 28)
HSLhsl(7, 64%, 30%)
HSVhsv(7, 78%, 49%)
CMYKcmyk(0%, 69%, 77.8%, 50.6%)
CIE-LABlab(29.34, 36.93, 27.71)
CIE-LCHlch(29.34, 46.17, 36.89°)
OKLaboklab(40.5% 0.1057 0.0619)
OKLCHoklch(40.5% 0.122 30.3)
XYZxyz(9.5404, 5.9719, 1.7487)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E271C #1C737E
analogous
#7E1C42 #7E271C #7E581C
triadic
#7E271C #1C7E27 #271C7E
tetradic
#7E271C #427E1C #1C737E #581C7E
square
#7E271C #427E1C #1C737E #581C7E
split-complementary
#7E271C #1C7E58 #1C427E
monochromatic
#1A0806 #4C1811 #7E271C #B03627 #D55140

Accessibility & contrast

On white

9.57
#7E271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E271C
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E271C#FFFFFF#000000##FFFFFF
##7E271C1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40391A
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#8B0E25
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e271c;
/* rgb */ color: rgb(126, 39, 28);
/* oklch */ color: oklch(40.5% 0.122 30.3);
Tailwind
colors: {
  custom: {
    50: '#aa6659',
    500: '#7e271c',
    950: '#000000',
  },
}
SCSS
$custom: #7e271c;
$custom-light: #aa6659;
$custom-dark: #000000;
JSON
{
  "hex": "#7e271c",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 6.735,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.405,
    "c": 0.12246,
    "h": 30.3
  },
  "luminance": 0.0597
}

Semantic roles & 50–950 ramp

primary
#7E271C
secondary
#44A5B2
accent
#D4E741
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E271C

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

Preview Lab → · Contrast checker → · Palette generator →

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