#7E251A#7E251A

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

Color values

HEX#7E251A
RGBrgb(126, 37, 26)
HSLhsl(7, 66%, 30%)
HSVhsv(7, 79%, 49%)
CMYKcmyk(0%, 70.6%, 79.4%, 50.6%)
CIE-LABlab(28.99, 37.73, 28.53)
CIE-LCHlch(28.99, 47.30, 37.09°)
OKLaboklab(40.23% 0.1078 0.0631)
OKLCHoklch(40.23% 0.125 30.3)
XYZxyz(9.4533, 5.8347, 1.6055)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E251A #1A737E
analogous
#7E1A41 #7E251A #7E571A
triadic
#7E251A #1A7E25 #251A7E
tetradic
#7E251A #417E1A #1A737E #571A7E
square
#7E251A #417E1A #1A737E #571A7E
split-complementary
#7E251A #1A7E57 #1A417E
monochromatic
#190705 #4B1610 #7E251A #B13424 #D74D3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E251A#FFFFFF#000000##FFFFFF
##7E251A1.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)
#3F3818
Deuteranopia (green-blind)
#554C17
Tritanopia (blue-blind)
#8B0823
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e251a;
/* rgb */ color: rgb(126, 37, 26);
/* oklch */ color: oklch(40.2% 0.125 30.3);
Tailwind
colors: {
  custom: {
    50: '#ab6557',
    500: '#7e251a',
    950: '#000000',
  },
}
SCSS
$custom: #7e251a;
$custom-light: #ab6557;
$custom-dark: #000000;
JSON
{
  "hex": "#7e251a",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 26
  },
  "hsl": {
    "h": 6.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4023,
    "c": 0.12486,
    "h": 30.3
  },
  "luminance": 0.05833
}

Semantic roles & 50–950 ramp

primary
#7E251A
secondary
#42A6B2
accent
#D6E93F
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E251A

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

Preview Lab → · Contrast checker → · Palette generator →

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