#7E1F36#7E1F36

#7E1F36 is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.1% C 0.129 H 11.2°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#7E1F36
RGBrgb(126, 31, 54)
HSLhsl(345, 61%, 31%)
HSVhsv(345, 75%, 49%)
CMYKcmyk(0%, 75.4%, 57.1%, 50.6%)
CIE-LABlab(28.60, 41.91, 10.01)
CIE-LCHlch(28.60, 43.09, 13.43°)
OKLaboklab(40.1% 0.1269 0.0252)
OKLCHoklch(40.1% 0.129 11.2)
XYZxyz(9.7609, 5.6833, 4.0723)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F36 #1F7E67
analogous
#7E1F65 #7E1F36 #7E371F
triadic
#7E1F36 #367E1F #1F367E
tetradic
#7E1F36 #657E1F #1F7E67 #371F7E
square
#7E1F36 #657E1F #1F7E67 #371F7E
split-complementary
#7E1F36 #1F7E37 #1F657E
monochromatic
#1C070C #4D1321 #7E1F36 #AF2B4B #D14668

Accessibility & contrast

On white

9.83
#7E1F36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E1F36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F36
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F36#FFFFFF#000000##FFFFFF
##7E1F361.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373736
Deuteranopia (green-blind)
#504A34
Tritanopia (blue-blind)
#8A0628
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f36;
/* rgb */ color: rgb(126, 31, 54);
/* oklch */ color: oklch(40.1% 0.129 11.2);
Tailwind
colors: {
  custom: {
    50: '#a9636c',
    500: '#7e1f36',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f36;
$custom-light: #a9636c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f36",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 54
  },
  "hsl": {
    "h": 345.474,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40097,
    "c": 0.12934,
    "h": 11.2
  },
  "luminance": 0.05682
}

Semantic roles & 50–950 ramp

primary
#7E1F36
secondary
#48B198
accent
#E4BD44
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110607
muted
#807A7A

Preview Lab

Preview with #7E1F36

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

Preview Lab → · Contrast checker → · Palette generator →

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