#7E2131#7E2131

#7E2131 is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.2% C 0.127 H 15.3°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#7E2131
RGBrgb(126, 33, 49)
HSLhsl(350, 58%, 31%)
HSVhsv(350, 74%, 49%)
CMYKcmyk(0%, 73.8%, 61.1%, 50.6%)
CIE-LABlab(28.76, 40.74, 13.57)
CIE-LCHlch(28.76, 42.94, 18.42°)
OKLaboklab(40.18% 0.1223 0.0334)
OKLCHoklch(40.18% 0.127 15.3)
XYZxyz(9.7034, 5.7465, 3.5034)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2131 #217E6E
analogous
#7E215F #7E2131 #7E3F21
triadic
#7E2131 #317E21 #21317E
tetradic
#7E2131 #5F7E21 #217E6E #3F217E
square
#7E2131 #5F7E21 #217E6E #3F217E
split-complementary
#7E2131 #217E3F #215F7E
monochromatic
#1D080B #4E141E #7E2131 #AE2E44 #D04A61

Accessibility & contrast

On white

9.77
#7E2131 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7E2131 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2131
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2131#FFFFFF#000000##FFFFFF
##7E21311.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393831
Deuteranopia (green-blind)
#514B2F
Tritanopia (blue-blind)
#8A0828
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2131;
/* rgb */ color: rgb(126, 33, 49);
/* oklch */ color: oklch(40.2% 0.127 15.3);
Tailwind
colors: {
  custom: {
    50: '#a96468',
    500: '#7e2131',
    950: '#000000',
  },
}
SCSS
$custom: #7e2131;
$custom-light: #a96468;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2131",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 49
  },
  "hsl": {
    "h": 349.677,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40182,
    "c": 0.12673,
    "h": 15.3
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#7E2131
secondary
#4AB19F
accent
#E2C746
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7E2131

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

Preview Lab → · Contrast checker → · Palette generator →

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