#7E231C#7E231C

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

Color values

HEX#7E231C
RGBrgb(126, 35, 28)
HSLhsl(4, 64%, 30%)
HSVhsv(4, 78%, 49%)
CMYKcmyk(0%, 72.2%, 77.8%, 50.6%)
CIE-LABlab(28.70, 38.67, 27.02)
CIE-LCHlch(28.70, 47.17, 34.94°)
OKLaboklab(40.02% 0.1111 0.0603)
OKLCHoklch(40.02% 0.126 28.5)
XYZxyz(9.4159, 5.7229, 1.7072)
Luminance0.0572 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E231C #1C777E
analogous
#7E1C46 #7E231C #7E541C
triadic
#7E231C #1C7E23 #231C7E
tetradic
#7E231C #467E1C #1C777E #541C7E
square
#7E231C #467E1C #1C777E #541C7E
split-complementary
#7E231C #1C7E54 #1C467E
monochromatic
#1A0706 #4C1511 #7E231C #B03127 #D54A40

Accessibility & contrast

On white

9.79
#7E231C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E231C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E231C
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E231C#FFFFFF#000000##FFFFFF
##7E231C1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D371A
Deuteranopia (green-blind)
#544B19
Tritanopia (blue-blind)
#8B0322
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e231c;
/* rgb */ color: rgb(126, 35, 28);
/* oklch */ color: oklch(40.0% 0.126 28.5);
Tailwind
colors: {
  custom: {
    50: '#ab6458',
    500: '#7e231c',
    950: '#000000',
  },
}
SCSS
$custom: #7e231c;
$custom-light: #ab6458;
$custom-dark: #000000;
JSON
{
  "hex": "#7e231c",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 28
  },
  "hsl": {
    "h": 4.286,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40021,
    "c": 0.12646,
    "h": 28.5
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#7E231C
secondary
#44AAB2
accent
#DBE741
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E231C

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

Preview Lab → · Contrast checker → · Palette generator →

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