#7E2127#7E2127

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

Color values

HEX#7E2127
RGBrgb(126, 33, 39)
HSLhsl(356, 58%, 31%)
HSVhsv(356, 74%, 49%)
CMYKcmyk(0%, 73.8%, 69%, 50.6%)
CIE-LABlab(28.57, 40.07, 19.90)
CIE-LCHlch(28.57, 44.73, 26.41°)
OKLaboklab(39.97% 0.118 0.0469)
OKLCHoklch(39.97% 0.127 21.7)
XYZxyz(9.5153, 5.6712, 2.5127)
Luminance0.0567 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2127 #217E78
analogous
#7E2155 #7E2127 #7E4921
triadic
#7E2127 #277E21 #21277E
tetradic
#7E2127 #557E21 #217E78 #49217E
square
#7E2127 #557E21 #217E78 #49217E
split-complementary
#7E2127 #217E49 #21557E
monochromatic
#1D0809 #4E1418 #7E2127 #AE2E36 #D04A52

Accessibility & contrast

On white

9.84
#7E2127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7E2127 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2127
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2127#FFFFFF#000000##FFFFFF
##7E21271.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2127;
/* rgb */ color: rgb(126, 33, 39);
/* oklch */ color: oklch(40.0% 0.127 21.7);
Tailwind
colors: {
  custom: {
    50: '#aa6461',
    500: '#7e2127',
    950: '#000000',
  },
}
SCSS
$custom: #7e2127;
$custom-light: #aa6461;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2127",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 39
  },
  "hsl": {
    "h": 356.129,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39972,
    "c": 0.127,
    "h": 21.7
  },
  "luminance": 0.0567
}

Semantic roles & 50–950 ramp

primary
#7E2127
secondary
#4AB1AA
accent
#E2D846
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7E2127

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

Preview Lab → · Contrast checker → · Palette generator →

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