#7E251B#7E251B

#7E251B is a dark, vivid red. Relative luminance 0.058; OKLCH L 40.2% C 0.125 H 29.9°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#7E251B
RGBrgb(126, 37, 27)
HSLhsl(6, 65%, 30%)
HSVhsv(6, 79%, 49%)
CMYKcmyk(0%, 70.6%, 78.6%, 50.6%)
CIE-LABlab(29.00, 37.77, 27.95)
CIE-LCHlch(29.00, 46.99, 36.50°)
OKLaboklab(40.24% 0.1081 0.0621)
OKLCHoklch(40.24% 0.125 29.9)
XYZxyz(9.4646, 5.8393, 1.6654)
Luminance0.0584 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E251B #1B747E
analogous
#7E1B42 #7E251B #7E571B
triadic
#7E251B #1B7E25 #251B7E
tetradic
#7E251B #427E1B #1B747E #571B7E
square
#7E251B #427E1B #1B747E #571B7E
split-complementary
#7E251B #1B7E57 #1B427E
monochromatic
#190705 #4C1610 #7E251B #B03426 #D64D3E

Accessibility & contrast

On white

9.69
#7E251B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7E251B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E251B
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E251B#FFFFFF#000000##FFFFFF
##7E251B1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3819
Deuteranopia (green-blind)
#554C18
Tritanopia (blue-blind)
#8B0823
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e251b;
/* rgb */ color: rgb(126, 37, 27);
/* oklch */ color: oklch(40.2% 0.125 29.9);
Tailwind
colors: {
  custom: {
    50: '#ab6558',
    500: '#7e251b',
    950: '#000000',
  },
}
SCSS
$custom: #7e251b;
$custom-light: #ab6558;
$custom-dark: #000000;
JSON
{
  "hex": "#7e251b",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 27
  },
  "hsl": {
    "h": 6.061,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.40242,
    "c": 0.12467,
    "h": 29.9
  },
  "luminance": 0.05838
}

Semantic roles & 50–950 ramp

primary
#7E251B
secondary
#43A7B2
accent
#D7E840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E251B

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

Preview Lab → · Contrast checker → · Palette generator →

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