#7E2731#7E2731

#7E2731 is a dark, moderate red. Relative luminance 0.061; OKLCH L 40.9% C 0.120 H 17.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#7E2731
RGBrgb(126, 39, 49)
HSLhsl(353, 53%, 32%)
HSVhsv(353, 69%, 49%)
CMYKcmyk(0%, 69%, 61.1%, 50.6%)
CIE-LABlab(29.69, 38.20, 14.80)
CIE-LCHlch(29.69, 40.97, 21.17°)
OKLaboklab(40.87% 0.1142 0.0363)
OKLCHoklch(40.87% 0.12 17.6)
XYZxyz(9.8850, 6.1098, 3.5639)
Luminance0.0611 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2731 #277E74
analogous
#7E275D #7E2731 #7E4827
triadic
#7E2731 #317E27 #27317E
tetradic
#7E2731 #5D7E27 #277E74 #48277E
square
#7E2731 #5D7E27 #277E74 #48277E
split-complementary
#7E2731 #277E48 #275D7E
monochromatic
#210A0D #4F191F #7E2731 #AD3543 #CA5563

Accessibility & contrast

On white

9.45
#7E2731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7E2731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2731
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2731#FFFFFF#000000##FFFFFF
##7E27311.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3A31
Deuteranopia (green-blind)
#534D2F
Tritanopia (blue-blind)
#8A142B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2731;
/* rgb */ color: rgb(126, 39, 49);
/* oklch */ color: oklch(40.9% 0.120 17.6);
Tailwind
colors: {
  custom: {
    50: '#a96768',
    500: '#7e2731',
    950: '#000000',
  },
}
SCSS
$custom: #7e2731;
$custom-light: #a96768;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2731",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 49
  },
  "hsl": {
    "h": 353.103,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4087,
    "c": 0.11978,
    "h": 17.6
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#7E2731
secondary
#52AFA4
accent
#DCCC4C
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7E2731

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

Preview Lab → · Contrast checker → · Palette generator →

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