#7D271F#7D271F

#7D271F is a dark, vivid red. Relative luminance 0.059; OKLCH L 40.4% C 0.121 H 28.8°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#7D271F
RGBrgb(125, 39, 31)
HSLhsl(5, 60%, 31%)
HSVhsv(5, 75%, 49%)
CMYKcmyk(0%, 68.8%, 75.2%, 51%)
CIE-LABlab(29.19, 36.71, 25.67)
CIE-LCHlch(29.19, 44.79, 34.97°)
OKLaboklab(40.36% 0.1058 0.0582)
OKLCHoklch(40.36% 0.121 28.8)
XYZxyz(9.4313, 5.9113, 1.9404)
Luminance0.0591 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D271F #1F757D
analogous
#7D1F46 #7D271F #7D561F
triadic
#7D271F #1F7D27 #271F7D
tetradic
#7D271F #467D1F #1F757D #561F7D
square
#7D271F #467D1F #1F757D #561F7D
split-complementary
#7D271F #1F7D56 #1F467D
monochromatic
#1B0807 #4C1813 #7D271F #AE362B #D15145

Accessibility & contrast

On white

9.62
#7D271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D271F
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D271F#FFFFFF#000000##FFFFFF
##7D271F1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F391E
Deuteranopia (green-blind)
#544C1C
Tritanopia (blue-blind)
#8A0F26
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d271f;
/* rgb */ color: rgb(125, 39, 31);
/* oklch */ color: oklch(40.4% 0.121 28.8);
Tailwind
colors: {
  custom: {
    50: '#a9665b',
    500: '#7d271f',
    950: '#000000',
  },
}
SCSS
$custom: #7d271f;
$custom-light: #a9665b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d271f",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 5.106,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40361,
    "c": 0.12072,
    "h": 28.8
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#7D271F
secondary
#48A7B0
accent
#D6E344
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7D271F

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

Preview Lab → · Contrast checker → · Palette generator →

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