#7F2126#7F2126

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

Color values

HEX#7F2126
RGBrgb(127, 33, 38)
HSLhsl(357, 59%, 31%)
HSVhsv(357, 74%, 50%)
CMYKcmyk(0%, 74%, 70.1%, 50.2%)
CIE-LABlab(28.75, 40.35, 20.82)
CIE-LCHlch(28.75, 45.40, 27.29°)
OKLaboklab(40.14% 0.1186 0.0487)
OKLCHoklch(40.14% 0.128 22.3)
XYZxyz(9.6471, 5.7411, 2.4335)
Luminance0.0574 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2126 #217F7A
analogous
#7F2155 #7F2126 #7F4B21
triadic
#7F2126 #267F21 #21267F
tetradic
#7F2126 #557F21 #217F7A #4B217F
square
#7F2126 #557F21 #217F7A #4B217F
split-complementary
#7F2126 #217F4B #21557F
monochromatic
#1E0809 #4E1417 #7F2126 #B02E35 #D04A51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2126#FFFFFF#000000##FFFFFF
##7F21261.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)
#3B3725
Deuteranopia (green-blind)
#534B23
Tritanopia (blue-blind)
#8C0124
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f2126;
/* rgb */ color: rgb(127, 33, 38);
/* oklch */ color: oklch(40.1% 0.128 22.3);
Tailwind
colors: {
  custom: {
    50: '#ab6460',
    500: '#7f2126',
    950: '#000000',
  },
}
SCSS
$custom: #7f2126;
$custom-light: #ab6460;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2126",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 38
  },
  "hsl": {
    "h": 356.809,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40139,
    "c": 0.1282,
    "h": 22.3
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#7F2126
secondary
#4AB2AC
accent
#E2DA46
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7F2126

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

Preview Lab → · Contrast checker → · Palette generator →

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