#7F1F28#7F1F28

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

Color values

HEX#7F1F28
RGBrgb(127, 31, 40)
HSLhsl(354, 61%, 31%)
HSVhsv(354, 76%, 50%)
CMYKcmyk(0%, 75.6%, 68.5%, 50.2%)
CIE-LABlab(28.50, 41.24, 19.21)
CIE-LCHlch(28.50, 45.50, 24.97°)
OKLaboklab(39.97% 0.1219 0.0454)
OKLCHoklch(39.97% 0.13 20.4)
XYZxyz(9.6264, 5.6466, 2.5901)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F28 #1F7F76
analogous
#7F1F58 #7F1F28 #7F461F
triadic
#7F1F28 #287F1F #1F287F
tetradic
#7F1F28 #587F1F #1F7F76 #461F7F
square
#7F1F28 #587F1F #1F7F76 #461F7F
split-complementary
#7F1F28 #1F7F46 #1F587F
monochromatic
#1D0709 #4E1319 #7F1F28 #B02B37 #D24654

Accessibility & contrast

On white

9.86
#7F1F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1F28
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F28#FFFFFF#000000##FFFFFF
##7F1F281.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3628
Deuteranopia (green-blind)
#524B25
Tritanopia (blue-blind)
#8C0023
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1f28;
/* rgb */ color: rgb(127, 31, 40);
/* oklch */ color: oklch(40.0% 0.130 20.4);
Tailwind
colors: {
  custom: {
    50: '#ab6361',
    500: '#7f1f28',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f28;
$custom-light: #ab6361;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f28",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 40
  },
  "hsl": {
    "h": 354.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39966,
    "c": 0.13006,
    "h": 20.4
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#7F1F28
secondary
#48B2A8
accent
#E4D544
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7F1F28

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

Preview Lab → · Contrast checker → · Palette generator →

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