#7E312B#7E312B

#7E312B is a dark, moderate red. Relative luminance 0.068; OKLCH L 42.1% C 0.108 H 27.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7E312B
RGBrgb(126, 49, 43)
HSLhsl(4, 49%, 33%)
HSVhsv(4, 66%, 49%)
CMYKcmyk(0%, 61.1%, 65.9%, 50.6%)
CIE-LABlab(31.37, 32.97, 20.82)
CIE-LCHlch(31.37, 39.00, 32.27°)
OKLaboklab(42.09% 0.0965 0.0495)
OKLCHoklch(42.09% 0.108 27.1)
XYZxyz(10.1395, 6.8080, 3.0652)
Luminance0.0681 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E312B #2B787E
analogous
#7E2B4E #7E312B #7E5A2B
triadic
#7E312B #2B7E31 #312B7E
tetradic
#7E312B #4E7E2B #2B787E #5A2B7E
square
#7E312B #4E7E2B #2B787E #5A2B7E
split-complementary
#7E312B #2B7E5A #2B4E7E
monochromatic
#230E0C #501F1B #7E312B #AC433B #C7645C

Accessibility & contrast

On white

8.89
#7E312B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E312B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E312B
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E312B#FFFFFF#000000##FFFFFF
##7E312B1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453F2A
Deuteranopia (green-blind)
#585029
Tritanopia (blue-blind)
#8A2230
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e312b;
/* rgb */ color: rgb(126, 49, 43);
/* oklch */ color: oklch(42.1% 0.108 27.1);
Tailwind
colors: {
  custom: {
    50: '#a96c64',
    500: '#7e312b',
    950: '#000000',
  },
}
SCSS
$custom: #7e312b;
$custom-light: #a96c64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e312b",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 43
  },
  "hsl": {
    "h": 4.337,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42093,
    "c": 0.10842,
    "h": 27.1
  },
  "luminance": 0.06807
}

Semantic roles & 50–950 ramp

primary
#7E312B
secondary
#58A7AD
accent
#CFD94F
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110705
muted
#807A7A

Preview Lab

Preview with #7E312B

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

Preview Lab → · Contrast checker → · Palette generator →

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