#7E231F#7E231F

#7E231F is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.1% C 0.126 H 27.0°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#7E231F
RGBrgb(126, 35, 31)
HSLhsl(3, 61%, 31%)
HSVhsv(3, 75%, 49%)
CMYKcmyk(0%, 72.2%, 75.4%, 50.6%)
CIE-LABlab(28.74, 38.81, 25.21)
CIE-LCHlch(28.74, 46.28, 33.01°)
OKLaboklab(40.06% 0.1123 0.0571)
OKLCHoklch(40.06% 0.126 27)
XYZxyz(9.4536, 5.7380, 1.9058)
Luminance0.0574 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E231F #1F7A7E
analogous
#7E1F4A #7E231F #7E521F
triadic
#7E231F #1F7E23 #231F7E
tetradic
#7E231F #4A7E1F #1F7A7E #521F7E
square
#7E231F #4A7E1F #1F7A7E #521F7E
split-complementary
#7E231F #1F7E52 #1F4A7E
monochromatic
#1C0807 #4D1513 #7E231F #AF312B #D14C46

Accessibility & contrast

On white

9.78
#7E231F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7E231F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E231F
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E231F#FFFFFF#000000##FFFFFF
##7E231F1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D371E
Deuteranopia (green-blind)
#544B1C
Tritanopia (blue-blind)
#8B0423
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e231f;
/* rgb */ color: rgb(126, 35, 31);
/* oklch */ color: oklch(40.1% 0.126 27.0);
Tailwind
colors: {
  custom: {
    50: '#aa645b',
    500: '#7e231f',
    950: '#000000',
  },
}
SCSS
$custom: #7e231f;
$custom-light: #aa645b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e231f",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 31
  },
  "hsl": {
    "h": 2.526,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40063,
    "c": 0.12596,
    "h": 27
  },
  "luminance": 0.05737
}

Semantic roles & 50–950 ramp

primary
#7E231F
secondary
#48ADB1
accent
#DDE444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E231F

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

Preview Lab → · Contrast checker → · Palette generator →

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