#7A271D#7A271D

#7A271D is a dark, moderate red. Relative luminance 0.057; OKLCH L 39.8% C 0.118 H 30.0°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#7A271D
RGBrgb(122, 39, 29)
HSLhsl(6, 62%, 30%)
HSVhsv(6, 76%, 48%)
CMYKcmyk(0%, 68%, 76.2%, 52.2%)
CIE-LABlab(28.59, 35.50, 26.06)
CIE-LCHlch(28.59, 44.03, 36.29°)
OKLaboklab(39.79% 0.1019 0.0588)
OKLCHoklch(39.79% 0.118 30)
XYZxyz(8.9743, 5.6786, 1.7857)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A271D #1D707A
analogous
#7A1D41 #7A271D #7A561D
triadic
#7A271D #1D7A27 #271D7A
tetradic
#7A271D #417A1D #1D707A #561D7A
square
#7A271D #417A1D #1D707A #561D7A
split-complementary
#7A271D #1D7A56 #1D417A
monochromatic
#190806 #491711 #7A271D #AB3729 #D25040

Accessibility & contrast

On white

9.83
#7A271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7A271D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A271D
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A271D#FFFFFF#000000##FFFFFF
##7A271D1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E381B
Deuteranopia (green-blind)
#534A1A
Tritanopia (blue-blind)
#871125
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a271d;
/* rgb */ color: rgb(122, 39, 29);
/* oklch */ color: oklch(39.8% 0.118 30.0);
Tailwind
colors: {
  custom: {
    50: '#a76659',
    500: '#7a271d',
    950: '#000000',
  },
}
SCSS
$custom: #7a271d;
$custom-light: #a76659;
$custom-dark: #000000;
JSON
{
  "hex": "#7a271d",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 6.452,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39794,
    "c": 0.11764,
    "h": 30
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#7A271D
secondary
#45A2AE
accent
#D3E543
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7A271D

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

Preview Lab → · Contrast checker → · Palette generator →

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