#7A271E#7A271E

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

Color values

HEX#7A271E
RGBrgb(122, 39, 30)
HSLhsl(6, 61%, 30%)
HSVhsv(6, 75%, 48%)
CMYKcmyk(0%, 68%, 75.4%, 52.2%)
CIE-LABlab(28.60, 35.55, 25.46)
CIE-LCHlch(28.60, 43.72, 35.62°)
OKLaboklab(39.81% 0.1023 0.0577)
OKLCHoklch(39.81% 0.117 29.4)
XYZxyz(8.9869, 5.6836, 1.8519)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A271E #1E717A
analogous
#7A1E43 #7A271E #7A551E
triadic
#7A271E #1E7A27 #271E7A
tetradic
#7A271E #437A1E #1E717A #551E7A
square
#7A271E #437A1E #1E717A #551E7A
split-complementary
#7A271E #1E7A55 #1E437A
monochromatic
#190806 #491712 #7A271E #AB372A #D05042

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A271E#FFFFFF#000000##FFFFFF
##7A271E1.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)
#3E381C
Deuteranopia (green-blind)
#534A1B
Tritanopia (blue-blind)
#871125
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a271e;
/* rgb */ color: rgb(122, 39, 30);
/* oklch */ color: oklch(39.8% 0.117 29.4);
Tailwind
colors: {
  custom: {
    50: '#a7665a',
    500: '#7a271e',
    950: '#000000',
  },
}
SCSS
$custom: #7a271e;
$custom-light: #a7665a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a271e",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 5.87,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39808,
    "c": 0.11743,
    "h": 29.4
  },
  "luminance": 0.05682
}

Semantic roles & 50–950 ramp

primary
#7A271E
secondary
#46A3AE
accent
#D4E444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7A271E

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

Preview Lab → · Contrast checker → · Palette generator →

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