#7C271A#7C271A

#7C271A is a dark, vivid red. Relative luminance 0.058; OKLCH L 40.1% C 0.121 H 31.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#7C271A
RGBrgb(124, 39, 26)
HSLhsl(8, 65%, 29%)
HSVhsv(8, 79%, 49%)
CMYKcmyk(0%, 68.5%, 79%, 51.4%)
CIE-LABlab(28.93, 36.10, 28.35)
CIE-LCHlch(28.93, 45.90, 38.14°)
OKLaboklab(40.11% 0.1029 0.0628)
OKLCHoklch(40.11% 0.121 31.4)
XYZxyz(9.2252, 5.8121, 1.6132)
Luminance0.0581 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C271A #1A6F7C
analogous
#7C1A3E #7C271A #7C581A
triadic
#7C271A #1A7C27 #271A7C
tetradic
#7C271A #3E7C1A #1A6F7C #581A7C
square
#7C271A #3E7C1A #1A6F7C #581A7C
split-complementary
#7C271A #1A7C58 #1A3E7C
monochromatic
#190805 #49170F #7C271A #AF3725 #D64F3B

Accessibility & contrast

On white

9.71
#7C271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7C271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C271A
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C271A#FFFFFF#000000##FFFFFF
##7C271A1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3818
Deuteranopia (green-blind)
#544B17
Tritanopia (blue-blind)
#890F25
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7c271a;
/* rgb */ color: rgb(124, 39, 26);
/* oklch */ color: oklch(40.1% 0.121 31.4);
Tailwind
colors: {
  custom: {
    50: '#a96657',
    500: '#7c271a',
    950: '#000000',
  },
}
SCSS
$custom: #7c271a;
$custom-light: #a96657;
$custom-dark: #000000;
JSON
{
  "hex": "#7c271a",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 7.959,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40114,
    "c": 0.12058,
    "h": 31.4
  },
  "luminance": 0.05811
}

Semantic roles & 50–950 ramp

primary
#7C271A
secondary
#42A2B0
accent
#D2E840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7C271A

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

Preview Lab → · Contrast checker → · Palette generator →

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