#7E2A28#7E2A28

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

Color values

HEX#7E2A28
RGBrgb(126, 42, 40)
HSLhsl(1, 52%, 33%)
HSVhsv(1, 68%, 49%)
CMYKcmyk(0%, 66.7%, 68.3%, 50.6%)
CIE-LABlab(30.03, 36.20, 21.06)
CIE-LCHlch(30.03, 41.88, 30.19°)
OKLaboklab(41.07% 0.106 0.0496)
OKLCHoklch(41.07% 0.117 25.1)
XYZxyz(9.8161, 6.2461, 2.6958)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A28 #287C7E
analogous
#7E2851 #7E2A28 #7E5528
triadic
#7E2A28 #287E2A #2A287E
tetradic
#7E2A28 #517E28 #287C7E #55287E
square
#7E2A28 #517E28 #287C7E #55287E
split-complementary
#7E2A28 #287E55 #28517E
monochromatic
#210B0B #501B19 #7E2A28 #AC3937 #CA5957

Accessibility & contrast

On white

9.34
#7E2A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2A28
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A28#FFFFFF#000000##FFFFFF
##7E2A281.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403B27
Deuteranopia (green-blind)
#554D26
Tritanopia (blue-blind)
#8B172A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e2a28;
/* rgb */ color: rgb(126, 42, 40);
/* oklch */ color: oklch(41.1% 0.117 25.1);
Tailwind
colors: {
  custom: {
    50: '#a96862',
    500: '#7e2a28',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a28;
$custom-light: #a96862;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a28",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 40
  },
  "hsl": {
    "h": 1.395,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41068,
    "c": 0.11705,
    "h": 25.1
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#7E2A28
secondary
#53ADAF
accent
#D8DB4D
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7E2A28

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

Preview Lab → · Contrast checker → · Palette generator →

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