#7E1F34#7E1F34

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

Color values

HEX#7E1F34
RGBrgb(126, 31, 52)
HSLhsl(347, 61%, 31%)
HSVhsv(347, 75%, 49%)
CMYKcmyk(0%, 75.4%, 58.7%, 50.6%)
CIE-LABlab(28.55, 41.75, 11.28)
CIE-LCHlch(28.55, 43.25, 15.12°)
OKLaboklab(40.05% 0.126 0.0282)
OKLCHoklch(40.05% 0.129 12.6)
XYZxyz(9.7149, 5.6649, 3.8300)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F34 #1F7E69
analogous
#7E1F63 #7E1F34 #7E391F
triadic
#7E1F34 #347E1F #1F347E
tetradic
#7E1F34 #637E1F #1F7E69 #391F7E
square
#7E1F34 #637E1F #1F7E69 #391F7E
split-complementary
#7E1F34 #1F7E39 #1F637E
monochromatic
#1C070B #4D1320 #7E1F34 #AF2B48 #D14665

Accessibility & contrast

On white

9.85
#7E1F34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7E1F34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F34
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F34#FFFFFF#000000##FFFFFF
##7E1F341.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383734
Deuteranopia (green-blind)
#504A32
Tritanopia (blue-blind)
#8A0528
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f34;
/* rgb */ color: rgb(126, 31, 52);
/* oklch */ color: oklch(40.0% 0.129 12.6);
Tailwind
colors: {
  custom: {
    50: '#a9636b',
    500: '#7e1f34',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f34;
$custom-light: #a9636b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f34",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 52
  },
  "hsl": {
    "h": 346.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40046,
    "c": 0.12913,
    "h": 12.6
  },
  "luminance": 0.05664
}

Semantic roles & 50–950 ramp

primary
#7E1F34
secondary
#48B19A
accent
#E4C044
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7E1F34

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

Preview Lab → · Contrast checker → · Palette generator →

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