#7E2128#7E2128

#7E2128 is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.0% C 0.127 H 21.1°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#7E2128
RGBrgb(126, 33, 40)
HSLhsl(355, 58%, 31%)
HSVhsv(355, 74%, 49%)
CMYKcmyk(0%, 73.8%, 68.3%, 50.6%)
CIE-LABlab(28.58, 40.13, 19.27)
CIE-LCHlch(28.58, 44.51, 25.65°)
OKLaboklab(39.99% 0.1185 0.0456)
OKLCHoklch(39.99% 0.127 21.1)
XYZxyz(9.5321, 5.6779, 2.6011)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2128 #217E77
analogous
#7E2156 #7E2128 #7E4821
triadic
#7E2128 #287E21 #21287E
tetradic
#7E2128 #567E21 #217E77 #48217E
square
#7E2128 #567E21 #217E77 #48217E
split-complementary
#7E2128 #217E48 #21567E
monochromatic
#1D0809 #4E1419 #7E2128 #AE2E37 #D04A54

Accessibility & contrast

On white

9.83
#7E2128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E2128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2128
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2128#FFFFFF#000000##FFFFFF
##7E21281.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3728
Deuteranopia (green-blind)
#524B25
Tritanopia (blue-blind)
#8B0324
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e2128;
/* rgb */ color: rgb(126, 33, 40);
/* oklch */ color: oklch(40.0% 0.127 21.1);
Tailwind
colors: {
  custom: {
    50: '#aa6461',
    500: '#7e2128',
    950: '#000000',
  },
}
SCSS
$custom: #7e2128;
$custom-light: #aa6461;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2128",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 40
  },
  "hsl": {
    "h": 355.484,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39991,
    "c": 0.12692,
    "h": 21.1
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#7E2128
secondary
#4AB1A9
accent
#E2D646
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7E2128

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

Preview Lab → · Contrast checker → · Palette generator →

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