#7F221B#7F221B

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

Color values

HEX#7F221B
RGBrgb(127, 34, 27)
HSLhsl(4, 65%, 30%)
HSVhsv(4, 79%, 50%)
CMYKcmyk(0%, 73.2%, 78.7%, 50.2%)
CIE-LABlab(28.74, 39.39, 27.72)
CIE-LCHlch(28.74, 48.17, 35.13°)
OKLaboklab(40.08% 0.1131 0.0615)
OKLCHoklch(40.08% 0.129 28.5)
XYZxyz(9.5233, 5.7367, 1.6425)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F221B #1B787F
analogous
#7F1B46 #7F221B #7F541B
triadic
#7F221B #1B7F22 #221B7F
tetradic
#7F221B #467F1B #1B787F #541B7F
square
#7F221B #467F1B #1B787F #541B7F
split-complementary
#7F221B #1B7F54 #1B467F
monochromatic
#1A0706 #4D1410 #7F221B #B13026 #D6493E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F221B#FFFFFF#000000##FFFFFF
##7F221B1.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)
#3D3719
Deuteranopia (green-blind)
#544B17
Tritanopia (blue-blind)
#8C0021
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f221b;
/* rgb */ color: rgb(127, 34, 27);
/* oklch */ color: oklch(40.1% 0.129 28.5);
Tailwind
colors: {
  custom: {
    50: '#ac6458',
    500: '#7f221b',
    950: '#000000',
  },
}
SCSS
$custom: #7f221b;
$custom-light: #ac6458;
$custom-dark: #000000;
JSON
{
  "hex": "#7f221b",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 27
  },
  "hsl": {
    "h": 4.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.4008,
    "c": 0.12871,
    "h": 28.5
  },
  "luminance": 0.05735
}

Semantic roles & 50–950 ramp

primary
#7F221B
secondary
#43ABB3
accent
#DCE840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F221B

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

Preview Lab → · Contrast checker → · Palette generator →

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