#7E2A1F#7E2A1F

#7E2A1F is a dark, moderate red. Relative luminance 0.062; OKLCH L 40.9% C 0.119 H 30.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7E2A1F
RGBrgb(126, 42, 31)
HSLhsl(7, 61%, 31%)
HSVhsv(7, 75%, 49%)
CMYKcmyk(0%, 66.7%, 75.4%, 50.6%)
CIE-LABlab(29.89, 35.69, 26.52)
CIE-LCHlch(29.89, 44.47, 36.61°)
OKLaboklab(40.92% 0.1025 0.06)
OKLCHoklch(40.92% 0.119 30.3)
XYZxyz(9.6805, 6.1919, 1.9815)
Luminance0.0619 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A1F #1F737E
analogous
#7E1F43 #7E2A1F #7E591F
triadic
#7E2A1F #1F7E2A #2A1F7E
tetradic
#7E2A1F #437E1F #1F737E #591F7E
square
#7E2A1F #437E1F #1F737E #591F7E
split-complementary
#7E2A1F #1F7E59 #1F437E
monochromatic
#1C0907 #4D1A13 #7E2A1F #AF3A2B #D15646

Accessibility & contrast

On white

9.38
#7E2A1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E2A1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A1F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A1F#FFFFFF#000000##FFFFFF
##7E2A1F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413B1D
Deuteranopia (green-blind)
#564D1C
Tritanopia (blue-blind)
#8B1428
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2a1f;
/* rgb */ color: rgb(126, 42, 31);
/* oklch */ color: oklch(40.9% 0.119 30.3);
Tailwind
colors: {
  custom: {
    50: '#aa685b',
    500: '#7e2a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a1f;
$custom-light: #aa685b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a1f",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 31
  },
  "hsl": {
    "h": 6.947,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40925,
    "c": 0.11873,
    "h": 30.3
  },
  "luminance": 0.0619
}

Semantic roles & 50–950 ramp

primary
#7E2A1F
secondary
#48A5B1
accent
#D1E444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E2A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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