#7F221F#7F221F

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

Color values

HEX#7F221F
RGBrgb(127, 34, 31)
HSLhsl(2, 61%, 31%)
HSVhsv(2, 76%, 50%)
CMYKcmyk(0%, 73.2%, 75.6%, 50.2%)
CIE-LABlab(28.79, 39.57, 25.32)
CIE-LCHlch(28.79, 46.98, 32.61°)
OKLaboklab(40.14% 0.1145 0.0573)
OKLCHoklch(40.14% 0.128 26.6)
XYZxyz(9.5728, 5.7564, 1.9031)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F221F #1F7C7F
analogous
#7F1F4C #7F221F #7F521F
triadic
#7F221F #1F7F22 #221F7F
tetradic
#7F221F #4C7F1F #1F7C7F #521F7F
square
#7F221F #4C7F1F #1F7C7F #521F7F
split-complementary
#7F221F #1F7F52 #1F4C7F
monochromatic
#1D0807 #4E1513 #7F221F #B02F2B #D24B46

Accessibility & contrast

On white

9.76
#7F221F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F221F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F221F#FFFFFF#000000##FFFFFF
##7F221F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D371E
Deuteranopia (green-blind)
#544B1C
Tritanopia (blue-blind)
#8C0122
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f221f;
/* rgb */ color: rgb(127, 34, 31);
/* oklch */ color: oklch(40.1% 0.128 26.6);
Tailwind
colors: {
  custom: {
    50: '#ab645b',
    500: '#7f221f',
    950: '#000000',
  },
}
SCSS
$custom: #7f221f;
$custom-light: #ab645b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f221f",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 31
  },
  "hsl": {
    "h": 1.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40135,
    "c": 0.12807,
    "h": 26.6
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

primary
#7F221F
secondary
#48AFB2
accent
#DFE444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7F221F

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

Preview Lab → · Contrast checker → · Palette generator →

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