#7E1B2D#7E1B2D

#7E1B2D is a dark, vivid red. Relative luminance 0.054; OKLCH L 39.5% C 0.133 H 16.0°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#7E1B2D
RGBrgb(126, 27, 45)
HSLhsl(349, 65%, 30%)
HSVhsv(349, 79%, 49%)
CMYKcmyk(0%, 78.6%, 64.3%, 50.6%)
CIE-LABlab(27.87, 42.69, 15.05)
CIE-LCHlch(27.87, 45.27, 19.42°)
OKLaboklab(39.49% 0.1277 0.0365)
OKLCHoklch(39.49% 0.133 16)
XYZxyz(9.4708, 5.4104, 3.0277)
Luminance0.0541 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B2D #1B7E6C
analogous
#7E1B5E #7E1B2D #7E3B1B
triadic
#7E1B2D #2D7E1B #1B2D7E
tetradic
#7E1B2D #5E7E1B #1B7E6C #3B1B7E
square
#7E1B2D #5E7E1B #1B7E6C #3B1B7E
split-complementary
#7E1B2D #1B7E3B #1B5E7E
monochromatic
#190509 #4C101B #7E1B2D #B0263F #D63E59

Accessibility & contrast

On white

10.09
#7E1B2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#7E1B2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B2D
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B2D#FFFFFF#000000##FFFFFF
##7E1B2D1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37352D
Deuteranopia (green-blind)
#50492A
Tritanopia (blue-blind)
#8B0023
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1b2d;
/* rgb */ color: rgb(126, 27, 45);
/* oklch */ color: oklch(39.5% 0.133 16.0);
Tailwind
colors: {
  custom: {
    50: '#aa6165',
    500: '#7e1b2d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b2d;
$custom-light: #aa6165;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b2d",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 45
  },
  "hsl": {
    "h": 349.091,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.39493,
    "c": 0.13286,
    "h": 16
  },
  "luminance": 0.05409
}

Semantic roles & 50–950 ramp

primary
#7E1B2D
secondary
#43B29E
accent
#E8C940
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110505
muted
#807A7A

Preview Lab

Preview with #7E1B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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