#7F1F2A#7F1F2A

#7F1F2A is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.0% C 0.130 H 19.2°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#7F1F2A
RGBrgb(127, 31, 42)
HSLhsl(353, 61%, 31%)
HSVhsv(353, 76%, 50%)
CMYKcmyk(0%, 75.6%, 66.9%, 50.2%)
CIE-LABlab(28.54, 41.37, 17.94)
CIE-LCHlch(28.54, 45.09, 23.45°)
OKLaboklab(40.01% 0.1227 0.0428)
OKLCHoklch(40.01% 0.13 19.2)
XYZxyz(9.6613, 5.6606, 2.7739)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F2A #1F7F74
analogous
#7F1F5A #7F1F2A #7F441F
triadic
#7F1F2A #2A7F1F #1F2A7F
tetradic
#7F1F2A #5A7F1F #1F7F74 #441F7F
square
#7F1F2A #5A7F1F #1F7F74 #441F7F
split-complementary
#7F1F2A #1F7F44 #1F5A7F
monochromatic
#1D0709 #4E131A #7F1F2A #B02B3A #D24656

Accessibility & contrast

On white

9.85
#7F1F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7F1F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F2A
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F2A#FFFFFF#000000##FFFFFF
##7F1F2A1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A362A
Deuteranopia (green-blind)
#524B27
Tritanopia (blue-blind)
#8C0024
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1f2a;
/* rgb */ color: rgb(127, 31, 42);
/* oklch */ color: oklch(40.0% 0.130 19.2);
Tailwind
colors: {
  custom: {
    50: '#ab6363',
    500: '#7f1f2a',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f2a;
$custom-light: #ab6363;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f2a",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 42
  },
  "hsl": {
    "h": 353.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40005,
    "c": 0.12996,
    "h": 19.2
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#7F1F2A
secondary
#48B2A6
accent
#E4D244
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7F1F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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