#7E2812#7E2812

#7E2812 is a dark, vivid red. Relative luminance 0.060; OKLCH L 40.5% C 0.124 H 35.1°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#7E2812
RGBrgb(126, 40, 18)
HSLhsl(12, 75%, 28%)
HSVhsv(12, 86%, 49%)
CMYKcmyk(0%, 68.3%, 85.7%, 50.6%)
CIE-LABlab(29.41, 36.10, 33.40)
CIE-LCHlch(29.41, 49.18, 42.78°)
OKLaboklab(40.52% 0.1011 0.071)
OKLCHoklch(40.52% 0.124 35.1)
XYZxyz(9.4732, 5.9983, 1.2311)
Luminance0.0600 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2812 #12687E
analogous
#7E1232 #7E2812 #7E5E12
triadic
#7E2812 #127E28 #28127E
tetradic
#7E2812 #327E12 #12687E #5E127E
square
#7E2812 #327E12 #12687E #5E127E
split-complementary
#7E2812 #127E5E #12327E
monochromatic
#1B0804 #48170A #7E2812 #B4391A #E14F2A

Accessibility & contrast

On white

9.55
#7E2812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7E2812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2812
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2812#FFFFFF#000000##FFFFFF
##7E28121.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41390E
Deuteranopia (green-blind)
#564C0E
Tritanopia (blue-blind)
#8B0E24
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2812;
/* rgb */ color: rgb(126, 40, 18);
/* oklch */ color: oklch(40.5% 0.124 35.1);
Tailwind
colors: {
  custom: {
    50: '#ab6752',
    500: '#7e2812',
    950: '#000000',
  },
}
SCSS
$custom: #7e2812;
$custom-light: #ab6752;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2812",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 18
  },
  "hsl": {
    "h": 12.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40517,
    "c": 0.12355,
    "h": 35.1
  },
  "luminance": 0.05997
}

Semantic roles & 50–950 ramp

primary
#7E2812
secondary
#389BB4
accent
#CBF236
background
#FBF6F4
surface
#F6EBE7
border
#D0C6C3
text
#110602
muted
#807A78

Preview Lab

Preview with #7E2812

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

Preview Lab → · Contrast checker → · Palette generator →

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