#7F2226#7F2226

#7F2226 is a dark, vivid red. Relative luminance 0.058; OKLCH L 40.2% C 0.127 H 22.7°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#7F2226
RGBrgb(127, 34, 38)
HSLhsl(357, 58%, 32%)
HSVhsv(357, 73%, 50%)
CMYKcmyk(0%, 73.2%, 70.1%, 50.2%)
CIE-LABlab(28.90, 39.94, 21.00)
CIE-LCHlch(28.90, 45.13, 27.73°)
OKLaboklab(40.25% 0.1173 0.0491)
OKLCHoklch(40.25% 0.127 22.7)
XYZxyz(9.6753, 5.7974, 2.4429)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2226 #227F7B
analogous
#7F2255 #7F2226 #7F4D22
triadic
#7F2226 #267F22 #22267F
tetradic
#7F2226 #557F22 #227F7B #4D227F
square
#7F2226 #557F22 #227F7B #4D227F
split-complementary
#7F2226 #227F4D #22557F
monochromatic
#1E0809 #4F1518 #7F2226 #AF2F34 #CF4C52

Accessibility & contrast

On white

9.73
#7F2226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7F2226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2226
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2226#FFFFFF#000000##FFFFFF
##7F22261.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3725
Deuteranopia (green-blind)
#534B23
Tritanopia (blue-blind)
#8C0424
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f2226;
/* rgb */ color: rgb(127, 34, 38);
/* oklch */ color: oklch(40.2% 0.127 22.7);
Tailwind
colors: {
  custom: {
    50: '#ab6460',
    500: '#7f2226',
    950: '#000000',
  },
}
SCSS
$custom: #7f2226;
$custom-light: #ab6460;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2226",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 38
  },
  "hsl": {
    "h": 357.419,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.12717,
    "h": 22.7
  },
  "luminance": 0.05796
}

Semantic roles & 50–950 ramp

primary
#7F2226
secondary
#4BB2AD
accent
#E1DA47
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7F2226

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

Preview Lab → · Contrast checker → · Palette generator →

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