#7F1B2A#7F1B2A

#7F1B2A is a dark, vivid red. Relative luminance 0.055; OKLCH L 39.6% C 0.134 H 18.0°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#7F1B2A
RGBrgb(127, 27, 42)
HSLhsl(351, 65%, 30%)
HSVhsv(351, 79%, 50%)
CMYKcmyk(0%, 78.7%, 66.9%, 50.2%)
CIE-LABlab(28.02, 42.82, 17.28)
CIE-LCHlch(28.02, 46.17, 21.98°)
OKLaboklab(39.62% 0.1274 0.0413)
OKLCHoklch(39.62% 0.134 18)
XYZxyz(9.5633, 5.4645, 2.7412)
Luminance0.0546 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B2A #1B7F70
analogous
#7F1B5C #7F1B2A #7F3E1B
triadic
#7F1B2A #2A7F1B #1B2A7F
tetradic
#7F1B2A #5C7F1B #1B7F70 #3E1B7F
square
#7F1B2A #5C7F1B #1B7F70 #3E1B7F
split-complementary
#7F1B2A #1B7F3E #1B5C7F
monochromatic
#1A0609 #4D1019 #7F1B2A #B1263B #D63E55

Accessibility & contrast

On white

10.04
#7F1B2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#7F1B2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B2A
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B2A#FFFFFF#000000##FFFFFF
##7F1B2A1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38352A
Deuteranopia (green-blind)
#514A27
Tritanopia (blue-blind)
#8C0022
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7f1b2a;
/* rgb */ color: rgb(127, 27, 42);
/* oklch */ color: oklch(39.6% 0.134 18.0);
Tailwind
colors: {
  custom: {
    50: '#ab6163',
    500: '#7f1b2a',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b2a;
$custom-light: #ab6163;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b2a",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 42
  },
  "hsl": {
    "h": 351,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39619,
    "c": 0.13388,
    "h": 18
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#7F1B2A
secondary
#43B3A2
accent
#E8CF40
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110505
muted
#807A79

Preview Lab

Preview with #7F1B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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