#7E2A17#7E2A17

#7E2A17 is a dark, vivid red. Relative luminance 0.062; OKLCH L 40.8% C 0.121 H 34.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#7E2A17
RGBrgb(126, 42, 23)
HSLhsl(11, 69%, 29%)
HSVhsv(11, 82%, 49%)
CMYKcmyk(0%, 66.7%, 81.7%, 50.6%)
CIE-LABlab(29.80, 35.34, 31.09)
CIE-LCHlch(29.80, 47.07, 41.34°)
OKLaboklab(40.83% 0.0997 0.0677)
OKLCHoklch(40.83% 0.121 34.2)
XYZxyz(9.5879, 6.1548, 1.4936)
Luminance0.0615 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A17 #176B7E
analogous
#7E1738 #7E2A17 #7E5E17
triadic
#7E2A17 #177E2A #2A177E
tetradic
#7E2A17 #387E17 #176B7E #5E177E
square
#7E2A17 #387E17 #176B7E #5E177E
split-complementary
#7E2A17 #177E5E #17387E
monochromatic
#1A0905 #4A190E #7E2A17 #B23B20 #DA5435

Accessibility & contrast

On white

9.41
#7E2A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E2A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A17
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A17#FFFFFF#000000##FFFFFF
##7E2A171.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A14
Deuteranopia (green-blind)
#574D14
Tritanopia (blue-blind)
#8B1326
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2a17;
/* rgb */ color: rgb(126, 42, 23);
/* oklch */ color: oklch(40.8% 0.121 34.2);
Tailwind
colors: {
  custom: {
    50: '#ab6855',
    500: '#7e2a17',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a17;
$custom-light: #ab6855;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a17",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 23
  },
  "hsl": {
    "h": 11.068,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40826,
    "c": 0.12052,
    "h": 34.2
  },
  "luminance": 0.06153
}

Semantic roles & 50–950 ramp

primary
#7E2A17
secondary
#3E9DB3
accent
#CBEC3C
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E2A17

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

Preview Lab → · Contrast checker → · Palette generator →

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