#7E2A2A#7E2A2A

#7E2A2A is a dark, moderate red. Relative luminance 0.063; OKLCH L 41.1% C 0.117 H 23.8°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#7E2A2A
RGBrgb(126, 42, 42)
HSLhsl(0, 50%, 33%)
HSVhsv(0, 67%, 49%)
CMYKcmyk(0%, 66.7%, 66.7%, 50.6%)
CIE-LABlab(30.06, 36.33, 19.83)
CIE-LCHlch(30.06, 41.39, 28.62°)
OKLaboklab(41.11% 0.1069 0.0471)
OKLCHoklch(41.11% 0.117 23.8)
XYZxyz(9.8510, 6.2601, 2.8796)
Luminance0.0626 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A2A #2A7E7E
analogous
#7E2A54 #7E2A2A #7E542A
triadic
#7E2A2A #2A7E2A #2A2A7E
tetradic
#7E2A2A #547E2A #2A7E7E #542A7E
square
#7E2A2A #547E2A #2A7E7E #542A7E
split-complementary
#7E2A2A #2A7E54 #2A547E
monochromatic
#220B0B #501B1B #7E2A2A #AC3939 #C85A5A

Accessibility & contrast

On white

9.33
#7E2A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E2A2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A2A
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A2A#FFFFFF#000000##FFFFFF
##7E2A2A1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403B29
Deuteranopia (green-blind)
#554D28
Tritanopia (blue-blind)
#8A172B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e2a2a;
/* rgb */ color: rgb(126, 42, 42);
/* oklch */ color: oklch(41.1% 0.117 23.8);
Tailwind
colors: {
  custom: {
    50: '#a96863',
    500: '#7e2a2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a2a;
$custom-light: #a96863;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a2a",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 42
  },
  "hsl": {
    "h": 0,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.41105,
    "c": 0.11677,
    "h": 23.8
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#7E2A2A
secondary
#56AEAE
accent
#DADA4E
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7E2A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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