#7E251F#7E251F

#7E251F is a dark, vivid red. Relative luminance 0.059; OKLCH L 40.3% C 0.124 H 27.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#7E251F
RGBrgb(126, 37, 31)
HSLhsl(4, 61%, 31%)
HSVhsv(4, 75%, 49%)
CMYKcmyk(0%, 70.6%, 75.4%, 50.6%)
CIE-LABlab(29.05, 37.96, 25.57)
CIE-LCHlch(29.05, 45.77, 33.97°)
OKLaboklab(40.3% 0.1096 0.0579)
OKLCHoklch(40.3% 0.124 27.9)
XYZxyz(9.5141, 5.8591, 1.9260)
Luminance0.0586 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E251F #1F787E
analogous
#7E1F48 #7E251F #7E541F
triadic
#7E251F #1F7E25 #251F7E
tetradic
#7E251F #487E1F #1F787E #541F7E
square
#7E251F #487E1F #1F787E #541F7E
split-complementary
#7E251F #1F7E54 #1F487E
monochromatic
#1C0807 #4D1713 #7E251F #AF332B #D14F46

Accessibility & contrast

On white

9.67
#7E251F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E251F
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E251F#FFFFFF#000000##FFFFFF
##7E251F1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E381E
Deuteranopia (green-blind)
#544C1C
Tritanopia (blue-blind)
#8B0924
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e251f;
/* rgb */ color: rgb(126, 37, 31);
/* oklch */ color: oklch(40.3% 0.124 27.9);
Tailwind
colors: {
  custom: {
    50: '#aa655b',
    500: '#7e251f',
    950: '#000000',
  },
}
SCSS
$custom: #7e251f;
$custom-light: #aa655b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e251f",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 31
  },
  "hsl": {
    "h": 3.789,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40296,
    "c": 0.12394,
    "h": 27.9
  },
  "luminance": 0.05858
}

Semantic roles & 50–950 ramp

primary
#7E251F
secondary
#48AAB1
accent
#DAE444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E251F

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

Preview Lab → · Contrast checker → · Palette generator →

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