#7D271A#7D271A

#7D271A is a dark, vivid red. Relative luminance 0.059; OKLCH L 40.3% C 0.122 H 31.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#7D271A
RGBrgb(125, 39, 26)
HSLhsl(8, 66%, 30%)
HSVhsv(8, 79%, 49%)
CMYKcmyk(0%, 68.8%, 79.2%, 51%)
CIE-LABlab(29.13, 36.48, 28.61)
CIE-LCHlch(29.13, 46.36, 38.11°)
OKLaboklab(40.29% 0.104 0.0633)
OKLCHoklch(40.29% 0.122 31.3)
XYZxyz(9.3705, 5.8870, 1.6200)
Luminance0.0589 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D271A #1A707D
analogous
#7D1A3E #7D271A #7D591A
triadic
#7D271A #1A7D27 #271A7D
tetradic
#7D271A #3E7D1A #1A707D #591A7D
square
#7D271A #3E7D1A #1A707D #591A7D
split-complementary
#7D271A #1A7D59 #1A3E7D
monochromatic
#190805 #4A170F #7D271A #B03725 #D6503B

Accessibility & contrast

On white

9.65
#7D271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7D271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D271A
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D271A#FFFFFF#000000##FFFFFF
##7D271A1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3918
Deuteranopia (green-blind)
#554C17
Tritanopia (blue-blind)
#8A0E25
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d271a;
/* rgb */ color: rgb(125, 39, 26);
/* oklch */ color: oklch(40.3% 0.122 31.3);
Tailwind
colors: {
  custom: {
    50: '#aa6657',
    500: '#7d271a',
    950: '#000000',
  },
}
SCSS
$custom: #7d271a;
$custom-light: #aa6657;
$custom-dark: #000000;
JSON
{
  "hex": "#7d271a",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 7.879,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.40294,
    "c": 0.12173,
    "h": 31.3
  },
  "luminance": 0.05886
}

Semantic roles & 50–950 ramp

primary
#7D271A
secondary
#42A2B1
accent
#D2E93F
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7D271A

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

Preview Lab → · Contrast checker → · Palette generator →

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