#7E1F33#7E1F33

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

Color values

HEX#7E1F33
RGBrgb(126, 31, 51)
HSLhsl(347, 61%, 31%)
HSVhsv(347, 75%, 49%)
CMYKcmyk(0%, 75.4%, 59.5%, 50.6%)
CIE-LABlab(28.53, 41.67, 11.92)
CIE-LCHlch(28.53, 43.34, 15.96°)
OKLaboklab(40.02% 0.1256 0.0296)
OKLCHoklch(40.02% 0.129 13.3)
XYZxyz(9.6926, 5.6560, 3.7127)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F33 #1F7E6A
analogous
#7E1F62 #7E1F33 #7E3A1F
triadic
#7E1F33 #337E1F #1F337E
tetradic
#7E1F33 #627E1F #1F7E6A #3A1F7E
square
#7E1F33 #627E1F #1F7E6A #3A1F7E
split-complementary
#7E1F33 #1F7E3A #1F627E
monochromatic
#1C070B #4D131F #7E1F33 #AF2B47 #D14663

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1F33#FFFFFF#000000##FFFFFF
##7E1F331.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)
#383733
Deuteranopia (green-blind)
#504A31
Tritanopia (blue-blind)
#8A0427
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f33;
/* rgb */ color: rgb(126, 31, 51);
/* oklch */ color: oklch(40.0% 0.129 13.3);
Tailwind
colors: {
  custom: {
    50: '#a9636a',
    500: '#7e1f33',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f33;
$custom-light: #a9636a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f33",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 51
  },
  "hsl": {
    "h": 347.368,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40021,
    "c": 0.12905,
    "h": 13.3
  },
  "luminance": 0.05655
}

Semantic roles & 50–950 ramp

primary
#7E1F33
secondary
#48B19B
accent
#E4C244
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7E1F33

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

Preview Lab → · Contrast checker → · Palette generator →

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