#7F221A#7F221A

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

Color values

HEX#7F221A
RGBrgb(127, 34, 26)
HSLhsl(5, 66%, 30%)
HSVhsv(5, 80%, 50%)
CMYKcmyk(0%, 73.2%, 79.5%, 50.2%)
CIE-LABlab(28.73, 39.35, 28.31)
CIE-LCHlch(28.73, 48.48, 35.73°)
OKLaboklab(40.07% 0.1127 0.0625)
OKLCHoklch(40.07% 0.129 29)
XYZxyz(9.5120, 5.7321, 1.5826)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F221A #1A777F
analogous
#7F1A45 #7F221A #7F541A
triadic
#7F221A #1A7F22 #221A7F
tetradic
#7F221A #457F1A #1A777F #541A7F
square
#7F221A #457F1A #1A777F #541A7F
split-complementary
#7F221A #1A7F54 #1A457F
monochromatic
#190705 #4C1410 #7F221A #B23024 #D7493C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F221A#FFFFFF#000000##FFFFFF
##7F221A1.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)
#3D3718
Deuteranopia (green-blind)
#544B16
Tritanopia (blue-blind)
#8C0021
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f221a;
/* rgb */ color: rgb(127, 34, 26);
/* oklch */ color: oklch(40.1% 0.129 29.0);
Tailwind
colors: {
  custom: {
    50: '#ac6457',
    500: '#7f221a',
    950: '#000000',
  },
}
SCSS
$custom: #7f221a;
$custom-light: #ac6457;
$custom-dark: #000000;
JSON
{
  "hex": "#7f221a",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 26
  },
  "hsl": {
    "h": 4.752,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.40067,
    "c": 0.12888,
    "h": 29
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#7F221A
secondary
#42AAB3
accent
#DBE93F
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#120603
muted
#817A78

Preview Lab

Preview with #7F221A

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

Preview Lab → · Contrast checker → · Palette generator →

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