#7F281F#7F281F

#7F281F is a dark, vivid red. Relative luminance 0.061; OKLCH L 40.8% C 0.122 H 29.3°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#7F281F
RGBrgb(127, 40, 31)
HSLhsl(6, 61%, 31%)
HSVhsv(6, 76%, 50%)
CMYKcmyk(0%, 68.5%, 75.6%, 50.2%)
CIE-LABlab(29.74, 36.99, 26.39)
CIE-LCHlch(29.74, 45.44, 35.51°)
OKLaboklab(40.85% 0.1064 0.0597)
OKLCHoklch(40.85% 0.122 29.3)
XYZxyz(9.7596, 6.1300, 1.9654)
Luminance0.0613 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F281F #1F767F
analogous
#7F1F46 #7F281F #7F581F
triadic
#7F281F #1F7F28 #281F7F
tetradic
#7F281F #467F1F #1F767F #581F7F
square
#7F281F #467F1F #1F767F #581F7F
split-complementary
#7F281F #1F7F58 #1F467F
monochromatic
#1D0907 #4E1913 #7F281F #B0372B #D25446

Accessibility & contrast

On white

9.43
#7F281F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F281F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F281F
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F281F#FFFFFF#000000##FFFFFF
##7F281F1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403A1D
Deuteranopia (green-blind)
#564D1C
Tritanopia (blue-blind)
#8C1027
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f281f;
/* rgb */ color: rgb(127, 40, 31);
/* oklch */ color: oklch(40.8% 0.122 29.3);
Tailwind
colors: {
  custom: {
    50: '#ab675b',
    500: '#7f281f',
    950: '#000000',
  },
}
SCSS
$custom: #7f281f;
$custom-light: #ab675b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f281f",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 31
  },
  "hsl": {
    "h": 5.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40845,
    "c": 0.12198,
    "h": 29.3
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#7F281F
secondary
#48A8B2
accent
#D5E444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7F281F

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

Preview Lab → · Contrast checker → · Palette generator →

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