#7C271B#7C271B

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

Color values

HEX#7C271B
RGBrgb(124, 39, 27)
HSLhsl(7, 64%, 30%)
HSVhsv(7, 78%, 49%)
CMYKcmyk(0%, 68.5%, 78.2%, 51.4%)
CIE-LABlab(28.95, 36.15, 27.77)
CIE-LCHlch(28.95, 45.58, 37.53°)
OKLaboklab(40.13% 0.1033 0.0618)
OKLCHoklch(40.13% 0.12 30.9)
XYZxyz(9.2365, 5.8166, 1.6731)
Luminance0.0582 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C271B #1B707C
analogous
#7C1B3F #7C271B #7C581B
triadic
#7C271B #1B7C27 #271B7C
tetradic
#7C271B #3F7C1B #1B707C #581B7C
square
#7C271B #3F7C1B #1B707C #581B7C
split-complementary
#7C271B #1B7C58 #1B3F7C
monochromatic
#190805 #4A1710 #7C271B #AE3726 #D5503D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C271B#FFFFFF#000000##FFFFFF
##7C271B1.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)
#3F3819
Deuteranopia (green-blind)
#544B18
Tritanopia (blue-blind)
#890F25
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7c271b;
/* rgb */ color: rgb(124, 39, 27);
/* oklch */ color: oklch(40.1% 0.120 30.9);
Tailwind
colors: {
  custom: {
    50: '#a96658',
    500: '#7c271b',
    950: '#000000',
  },
}
SCSS
$custom: #7c271b;
$custom-light: #a96658;
$custom-dark: #000000;
JSON
{
  "hex": "#7c271b",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 7.423,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.40126,
    "c": 0.12037,
    "h": 30.9
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#7C271B
secondary
#43A2B0
accent
#D3E741
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7C271B

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

Preview Lab → · Contrast checker → · Palette generator →

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