#7A271C#7A271C

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

Color values

HEX#7A271C
RGBrgb(122, 39, 28)
HSLhsl(7, 63%, 29%)
HSVhsv(7, 77%, 48%)
CMYKcmyk(0%, 68%, 77%, 52.2%)
CIE-LABlab(28.57, 35.45, 26.65)
CIE-LCHlch(28.57, 44.35, 36.94°)
OKLaboklab(39.78% 0.1015 0.0598)
OKLCHoklch(39.78% 0.118 30.5)
XYZxyz(8.9621, 5.6737, 1.7216)
Luminance0.0567 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A271C #1C6F7A
analogous
#7A1C40 #7A271C #7A561C
triadic
#7A271C #1C7A27 #271C7A
tetradic
#7A271C #407A1C #1C6F7A #561C7A
square
#7A271C #407A1C #1C6F7A #561C7A
split-complementary
#7A271C #1C7A56 #1C407A
monochromatic
#190806 #481711 #7A271C #AC3727 #D34F3E

Accessibility & contrast

On white

9.84
#7A271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7A271C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A271C
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A271C#FFFFFF#000000##FFFFFF
##7A271C1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E381A
Deuteranopia (green-blind)
#534A19
Tritanopia (blue-blind)
#871025
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a271c;
/* rgb */ color: rgb(122, 39, 28);
/* oklch */ color: oklch(39.8% 0.118 30.5);
Tailwind
colors: {
  custom: {
    50: '#a76659',
    500: '#7a271c',
    950: '#000000',
  },
}
SCSS
$custom: #7a271c;
$custom-light: #a76659;
$custom-dark: #000000;
JSON
{
  "hex": "#7a271c",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 7.021,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3978,
    "c": 0.11785,
    "h": 30.5
  },
  "luminance": 0.05672
}

Semantic roles & 50–950 ramp

primary
#7A271C
secondary
#44A2AE
accent
#D3E642
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7A271C

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

Preview Lab → · Contrast checker → · Palette generator →

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