#7E281F#7E281F

#7E281F is a dark, vivid red. Relative luminance 0.061; OKLCH L 40.7% C 0.121 H 29.3°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#7E281F
RGBrgb(126, 40, 31)
HSLhsl(6, 61%, 31%)
HSVhsv(6, 75%, 49%)
CMYKcmyk(0%, 68.3%, 75.4%, 50.6%)
CIE-LABlab(29.55, 36.62, 26.13)
CIE-LCHlch(29.55, 44.99, 35.51°)
OKLaboklab(40.67% 0.1054 0.0591)
OKLCHoklch(40.67% 0.121 29.3)
XYZxyz(9.6113, 6.0535, 1.9584)
Luminance0.0605 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E281F #1F757E
analogous
#7E1F45 #7E281F #7E571F
triadic
#7E281F #1F7E28 #281F7E
tetradic
#7E281F #457E1F #1F757E #571F7E
square
#7E281F #457E1F #1F757E #571F7E
split-complementary
#7E281F #1F7E57 #1F457E
monochromatic
#1C0907 #4D1813 #7E281F #AF382B #D15346

Accessibility & contrast

On white

9.50
#7E281F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E281F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E281F
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E281F#FFFFFF#000000##FFFFFF
##7E281F1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403A1D
Deuteranopia (green-blind)
#554D1C
Tritanopia (blue-blind)
#8B1126
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e281f;
/* rgb */ color: rgb(126, 40, 31);
/* oklch */ color: oklch(40.7% 0.121 29.3);
Tailwind
colors: {
  custom: {
    50: '#aa675b',
    500: '#7e281f',
    950: '#000000',
  },
}
SCSS
$custom: #7e281f;
$custom-light: #aa675b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e281f",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 31
  },
  "hsl": {
    "h": 5.684,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40666,
    "c": 0.12083,
    "h": 29.3
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#7E281F
secondary
#48A7B1
accent
#D5E444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E281F

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

Preview Lab → · Contrast checker → · Palette generator →

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