#7F2A22#7F2A22

#7F2A22 is a dark, moderate red. Relative luminance 0.063; OKLCH L 41.1% C 0.119 H 28.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7F2A22
RGBrgb(127, 42, 34)
HSLhsl(5, 58%, 32%)
HSVhsv(5, 73%, 50%)
CMYKcmyk(0%, 66.9%, 73.2%, 50.2%)
CIE-LABlab(30.12, 36.22, 24.99)
CIE-LCHlch(30.12, 44.01, 34.60°)
OKLaboklab(41.15% 0.1047 0.0572)
OKLCHoklch(41.15% 0.119 28.7)
XYZxyz(9.8701, 6.2848, 2.2064)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A22 #22777F
analogous
#7F2249 #7F2A22 #7F5922
triadic
#7F2A22 #227F2A #2A227F
tetradic
#7F2A22 #497F22 #22777F #59227F
square
#7F2A22 #497F22 #22777F #59227F
split-complementary
#7F2A22 #227F59 #22497F
monochromatic
#1E0A08 #4F1A15 #7F2A22 #AF3A2F #CF584C

Accessibility & contrast

On white

9.31
#7F2A22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F2A22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A22
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A22#FFFFFF#000000##FFFFFF
##7F2A221.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413B21
Deuteranopia (green-blind)
#574E1F
Tritanopia (blue-blind)
#8C1529
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f2a22;
/* rgb */ color: rgb(127, 42, 34);
/* oklch */ color: oklch(41.1% 0.119 28.7);
Tailwind
colors: {
  custom: {
    50: '#ab685d',
    500: '#7f2a22',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a22;
$custom-light: #ab685d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a22",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 34
  },
  "hsl": {
    "h": 5.161,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41145,
    "c": 0.11929,
    "h": 28.7
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#7F2A22
secondary
#4BA9B2
accent
#D4E147
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7F2A22

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

Preview Lab → · Contrast checker → · Palette generator →

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