#7E312F#7E312F

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

Color values

HEX#7E312F
RGBrgb(126, 49, 47)
HSLhsl(2, 46%, 34%)
HSVhsv(2, 63%, 49%)
CMYKcmyk(0%, 61.1%, 62.7%, 50.6%)
CIE-LABlab(31.44, 33.26, 18.37)
CIE-LCHlch(31.44, 38.00, 28.91°)
OKLaboklab(42.17% 0.0982 0.0443)
OKLCHoklch(42.17% 0.108 24.3)
XYZxyz(10.2165, 6.8388, 3.4708)
Luminance0.0684 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E312F #2F7C7E
analogous
#7E2F55 #7E312F #7E592F
triadic
#7E312F #2F7E31 #312F7E
tetradic
#7E312F #557E2F #2F7C7E #592F7E
square
#7E312F #557E2F #2F7C7E #592F7E
split-complementary
#7E312F #2F7E59 #2F557E
monochromatic
#250E0E #51201E #7E312F #AB4240 #C56563

Accessibility & contrast

On white

8.87
#7E312F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E312F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E312F
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E312F#FFFFFF#000000##FFFFFF
##7E312F1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44402E
Deuteranopia (green-blind)
#58502D
Tritanopia (blue-blind)
#8A2331
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e312f;
/* rgb */ color: rgb(126, 49, 47);
/* oklch */ color: oklch(42.2% 0.108 24.3);
Tailwind
colors: {
  custom: {
    50: '#a86c67',
    500: '#7e312f',
    950: '#000000',
  },
}
SCSS
$custom: #7e312f;
$custom-light: #a86c67;
$custom-dark: #000000;
JSON
{
  "hex": "#7e312f",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 47
  },
  "hsl": {
    "h": 1.519,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4217,
    "c": 0.10771,
    "h": 24.3
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

primary
#7E312F
secondary
#5DAAAC
accent
#D2D552
background
#FAF6F6
surface
#F5ECEB
border
#CFC7C6
text
#110706
muted
#807A7A

Preview Lab

Preview with #7E312F

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

Preview Lab → · Contrast checker → · Palette generator →

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