#7C271E#7C271E

#7C271E is a dark, moderate red. Relative luminance 0.058; OKLCH L 40.2% C 0.120 H 29.4°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#7C271E
RGBrgb(124, 39, 30)
HSLhsl(6, 61%, 30%)
HSVhsv(6, 76%, 49%)
CMYKcmyk(0%, 68.5%, 75.8%, 51.4%)
CIE-LABlab(28.98, 36.29, 26.00)
CIE-LCHlch(28.98, 44.64, 35.62°)
OKLaboklab(40.17% 0.1044 0.0587)
OKLCHoklch(40.17% 0.12 29.4)
XYZxyz(9.2730, 5.8312, 1.8653)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C271E #1E737C
analogous
#7C1E44 #7C271E #7C561E
triadic
#7C271E #1E7C27 #271E7C
tetradic
#7C271E #447C1E #1E737C #561E7C
square
#7C271E #447C1E #1E737C #561E7C
split-complementary
#7C271E #1E7C56 #1E447C
monochromatic
#190806 #4B1812 #7C271E #AD362A #D15143

Accessibility & contrast

On white

9.70
#7C271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7C271E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C271E
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C271E#FFFFFF#000000##FFFFFF
##7C271E1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F391C
Deuteranopia (green-blind)
#544B1B
Tritanopia (blue-blind)
#891025
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7c271e;
/* rgb */ color: rgb(124, 39, 30);
/* oklch */ color: oklch(40.2% 0.120 29.4);
Tailwind
colors: {
  custom: {
    50: '#a9665a',
    500: '#7c271e',
    950: '#000000',
  },
}
SCSS
$custom: #7c271e;
$custom-light: #a9665a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c271e",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 5.745,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40167,
    "c": 0.11976,
    "h": 29.4
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

primary
#7C271E
secondary
#46A5AF
accent
#D5E444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7C271E

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

Preview Lab → · Contrast checker → · Palette generator →

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