#7E402F#7E402F

#7E402F is a dark, moderate red. Relative luminance 0.083; OKLCH L 44.6% C 0.090 H 36.3°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7E402F
RGBrgb(126, 64, 47)
HSLhsl(13, 46%, 34%)
HSVhsv(13, 63%, 49%)
CMYKcmyk(0%, 49.2%, 62.7%, 50.6%)
CIE-LABlab(34.62, 25.12, 22.40)
CIE-LCHlch(34.62, 33.66, 41.72°)
OKLaboklab(44.58% 0.0729 0.0535)
OKLCHoklch(44.58% 0.09 36.3)
XYZxyz(10.9515, 8.3089, 3.7158)
Luminance0.0831 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E402F #2F6D7E
analogous
#7E2F46 #7E402F #7E682F
triadic
#7E402F #2F7E40 #402F7E
tetradic
#7E402F #467E2F #2F6D7E #682F7E
square
#7E402F #467E2F #2F6D7E #682F7E
split-complementary
#7E402F #2F7E68 #2F467E
monochromatic
#25130E #51291E #7E402F #AB5740 #C57863

Accessibility & contrast

On white

7.89
#7E402F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E402F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E402F
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E402F#FFFFFF#000000##FFFFFF
##7E402F1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50492D
Deuteranopia (green-blind)
#5F572E
Tritanopia (blue-blind)
#8A353C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e402f;
/* rgb */ color: rgb(126, 64, 47);
/* oklch */ color: oklch(44.6% 0.090 36.3);
Tailwind
colors: {
  custom: {
    50: '#a87668',
    500: '#7e402f',
    950: '#000000',
  },
}
SCSS
$custom: #7e402f;
$custom-light: #a87668;
$custom-dark: #000000;
JSON
{
  "hex": "#7e402f",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 47
  },
  "hsl": {
    "h": 12.911,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44584,
    "c": 0.09035,
    "h": 36.3
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#7E402F
secondary
#5D9BAC
accent
#B9D552
background
#FAF7F6
surface
#F4EDEB
border
#CEC8C6
text
#100806
muted
#7F7B7A

Preview Lab

Preview with #7E402F

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

Preview Lab → · Contrast checker → · Palette generator →

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