#7D271B#7D271B

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

Color values

HEX#7D271B
RGBrgb(125, 39, 27)
HSLhsl(7, 64%, 30%)
HSVhsv(7, 78%, 49%)
CMYKcmyk(0%, 68.8%, 78.4%, 51%)
CIE-LABlab(29.14, 36.52, 28.03)
CIE-LCHlch(29.14, 46.04, 37.51°)
OKLaboklab(40.31% 0.1043 0.0623)
OKLCHoklch(40.31% 0.122 30.9)
XYZxyz(9.3818, 5.8915, 1.6799)
Luminance0.0589 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D271B #1B717D
analogous
#7D1B40 #7D271B #7D581B
triadic
#7D271B #1B7D27 #271B7D
tetradic
#7D271B #407D1B #1B717D #581B7D
square
#7D271B #407D1B #1B717D #581B7D
split-complementary
#7D271B #1B7D58 #1B407D
monochromatic
#190805 #4B1710 #7D271B #AF3726 #D5503D

Accessibility & contrast

On white

9.64
#7D271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D271B
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D271B#FFFFFF#000000##FFFFFF
##7D271B1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d271b;
/* rgb */ color: rgb(125, 39, 27);
/* oklch */ color: oklch(40.3% 0.122 30.9);
Tailwind
colors: {
  custom: {
    50: '#aa6658',
    500: '#7d271b',
    950: '#000000',
  },
}
SCSS
$custom: #7d271b;
$custom-light: #aa6658;
$custom-dark: #000000;
JSON
{
  "hex": "#7d271b",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 7.347,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.40307,
    "c": 0.12152,
    "h": 30.9
  },
  "luminance": 0.0589
}

Semantic roles & 50–950 ramp

primary
#7D271B
secondary
#43A3B1
accent
#D3E740
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7D271B

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

Preview Lab → · Contrast checker → · Palette generator →

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