#7E2227#7E2227

#7E2227 is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.1% C 0.126 H 22.0°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#7E2227
RGBrgb(126, 34, 39)
HSLhsl(357, 58%, 31%)
HSVhsv(357, 73%, 49%)
CMYKcmyk(0%, 73%, 69%, 50.6%)
CIE-LABlab(28.71, 39.66, 20.08)
CIE-LCHlch(28.71, 44.45, 26.86°)
OKLaboklab(40.08% 0.1167 0.0473)
OKLCHoklch(40.08% 0.126 22)
XYZxyz(9.5434, 5.7276, 2.5221)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2227 #227E79
analogous
#7E2255 #7E2227 #7E4B22
triadic
#7E2227 #277E22 #22277E
tetradic
#7E2227 #557E22 #227E79 #4B227E
square
#7E2227 #557E22 #227E79 #4B227E
split-complementary
#7E2227 #227E4B #22557E
monochromatic
#1E0809 #4E1518 #7E2227 #AE2F36 #CF4C53

Accessibility & contrast

On white

9.79
#7E2227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2227
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2227#FFFFFF#000000##FFFFFF
##7E22271.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3726
Deuteranopia (green-blind)
#534B24
Tritanopia (blue-blind)
#8B0525
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2227;
/* rgb */ color: rgb(126, 34, 39);
/* oklch */ color: oklch(40.1% 0.126 22.0);
Tailwind
colors: {
  custom: {
    50: '#aa6461',
    500: '#7e2227',
    950: '#000000',
  },
}
SCSS
$custom: #7e2227;
$custom-light: #aa6461;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2227",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 39
  },
  "hsl": {
    "h": 356.739,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40082,
    "c": 0.12595,
    "h": 22
  },
  "luminance": 0.05726
}

Semantic roles & 50–950 ramp

primary
#7E2227
secondary
#4BB1AB
accent
#E1D847
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7E2227

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

Preview Lab → · Contrast checker → · Palette generator →

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