#7E2228#7E2228

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

Color values

HEX#7E2228
RGBrgb(126, 34, 40)
HSLhsl(356, 58%, 31%)
HSVhsv(356, 73%, 49%)
CMYKcmyk(0%, 73%, 68.3%, 50.6%)
CIE-LABlab(28.73, 39.72, 19.45)
CIE-LCHlch(28.73, 44.23, 26.09°)
OKLaboklab(40.1% 0.1172 0.046)
OKLCHoklch(40.1% 0.126 21.4)
XYZxyz(9.5602, 5.7343, 2.6105)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2228 #227E78
analogous
#7E2256 #7E2228 #7E4A22
triadic
#7E2228 #287E22 #22287E
tetradic
#7E2228 #567E22 #227E78 #4A227E
square
#7E2228 #567E22 #227E78 #4A227E
split-complementary
#7E2228 #227E4A #22567E
monochromatic
#1E0809 #4E1519 #7E2228 #AE2F37 #CF4C54

Accessibility & contrast

On white

9.78
#7E2228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2228
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2228#FFFFFF#000000##FFFFFF
##7E22281.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2228;
/* rgb */ color: rgb(126, 34, 40);
/* oklch */ color: oklch(40.1% 0.126 21.4);
Tailwind
colors: {
  custom: {
    50: '#aa6461',
    500: '#7e2228',
    950: '#000000',
  },
}
SCSS
$custom: #7e2228;
$custom-light: #aa6461;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2228",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 40
  },
  "hsl": {
    "h": 356.087,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40101,
    "c": 0.12587,
    "h": 21.4
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#7E2228
secondary
#4BB1AA
accent
#E1D747
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7E2228

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

Preview Lab → · Contrast checker → · Palette generator →

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