#7A271F#7A271F

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

Color values

HEX#7A271F
RGBrgb(122, 39, 31)
HSLhsl(5, 59%, 30%)
HSVhsv(5, 75%, 48%)
CMYKcmyk(0%, 68%, 74.6%, 52.2%)
CIE-LABlab(28.61, 35.60, 24.86)
CIE-LCHlch(28.61, 43.42, 34.93°)
OKLaboklab(39.82% 0.1027 0.0566)
OKLCHoklch(39.82% 0.117 28.9)
XYZxyz(8.9998, 5.6888, 1.9202)
Luminance0.0569 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A271F #1F727A
analogous
#7A1F44 #7A271F #7A551F
triadic
#7A271F #1F7A27 #271F7A
tetradic
#7A271F #447A1F #1F727A #551F7A
square
#7A271F #447A1F #1F727A #551F7A
split-complementary
#7A271F #1F7A55 #1F447A
monochromatic
#180806 #491713 #7A271F #AB372B #CF5044

Accessibility & contrast

On white

9.82
#7A271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A271F
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A271F#FFFFFF#000000##FFFFFF
##7A271F1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E381E
Deuteranopia (green-blind)
#534A1C
Tritanopia (blue-blind)
#871126
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a271f;
/* rgb */ color: rgb(122, 39, 31);
/* oklch */ color: oklch(39.8% 0.117 28.9);
Tailwind
colors: {
  custom: {
    50: '#a7665b',
    500: '#7a271f',
    950: '#000000',
  },
}
SCSS
$custom: #7a271f;
$custom-light: #a7665b;
$custom-dark: #000000;
JSON
{
  "hex": "#7a271f",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 5.275,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.39822,
    "c": 0.11723,
    "h": 28.9
  },
  "luminance": 0.05688
}

Semantic roles & 50–950 ramp

primary
#7A271F
secondary
#47A4AD
accent
#D5E345
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7A271F

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

Preview Lab → · Contrast checker → · Palette generator →

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