#7E1526#7E1526

#7E1526 is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.8% C 0.138 H 18.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#7E1526
RGBrgb(126, 21, 38)
HSLhsl(350, 71%, 29%)
HSVhsv(350, 83%, 49%)
CMYKcmyk(0%, 83.3%, 69.8%, 50.6%)
CIE-LABlab(27.06, 44.18, 18.67)
CIE-LCHlch(27.06, 47.97, 22.91°)
OKLaboklab(38.84% 0.131 0.044)
OKLCHoklch(38.84% 0.138 18.6)
XYZxyz(9.2232, 5.1133, 2.3347)
Luminance0.0511 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1526 #157E6D
analogous
#7E155B #7E1526 #7E3915
triadic
#7E1526 #267E15 #15267E
tetradic
#7E1526 #5B7E15 #157E6D #39157E
square
#7E1526 #5B7E15 #157E6D #39157E
split-complementary
#7E1526 #157E39 #155B7E
monochromatic
#1A0408 #4A0C16 #7E1526 #B21E36 #DD314D

Accessibility & contrast

On white

10.38
#7E1526 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#7E1526 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1526
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1526#FFFFFF#000000##FFFFFF
##7E15261.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353226
Deuteranopia (green-blind)
#4F4823
Tritanopia (blue-blind)
#8B001D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1526;
/* rgb */ color: rgb(126, 21, 38);
/* oklch */ color: oklch(38.8% 0.138 18.6);
Tailwind
colors: {
  custom: {
    50: '#ab5f60',
    500: '#7e1526',
    950: '#000000',
  },
}
SCSS
$custom: #7e1526;
$custom-light: #ab5f60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1526",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 38
  },
  "hsl": {
    "h": 350.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38844,
    "c": 0.13815,
    "h": 18.6
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#7E1526
secondary
#3CB3A0
accent
#EED13A
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7E1526

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

Preview Lab → · Contrast checker → · Palette generator →

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