#7F1F2D#7F1F2D

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

Color values

HEX#7F1F2D
RGBrgb(127, 31, 45)
HSLhsl(351, 61%, 31%)
HSVhsv(351, 76%, 50%)
CMYKcmyk(0%, 75.6%, 64.6%, 50.2%)
CIE-LABlab(28.60, 41.56, 16.04)
CIE-LCHlch(28.60, 44.55, 21.10°)
OKLaboklab(40.07% 0.124 0.0388)
OKLCHoklch(40.07% 0.13 17.4)
XYZxyz(9.7170, 5.6829, 3.0674)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F2D #1F7F71
analogous
#7F1F5D #7F1F2D #7F411F
triadic
#7F1F2D #2D7F1F #1F2D7F
tetradic
#7F1F2D #5D7F1F #1F7F71 #411F7F
square
#7F1F2D #5D7F1F #1F7F71 #411F7F
split-complementary
#7F1F2D #1F7F41 #1F5D7F
monochromatic
#1D070A #4E131C #7F1F2D #B02B3E #D2465B

Accessibility & contrast

On white

9.83
#7F1F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7F1F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F2D
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F2D#FFFFFF#000000##FFFFFF
##7F1F2D1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39372D
Deuteranopia (green-blind)
#524B2A
Tritanopia (blue-blind)
#8C0025
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1f2d;
/* rgb */ color: rgb(127, 31, 45);
/* oklch */ color: oklch(40.1% 0.130 17.4);
Tailwind
colors: {
  custom: {
    50: '#aa6365',
    500: '#7f1f2d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f2d;
$custom-light: #aa6365;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f2d",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 45
  },
  "hsl": {
    "h": 351.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40068,
    "c": 0.12989,
    "h": 17.4
  },
  "luminance": 0.05681
}

Semantic roles & 50–950 ramp

primary
#7F1F2D
secondary
#48B2A3
accent
#E4CD44
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110605
muted
#807A7A

Preview Lab

Preview with #7F1F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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