#7F1E2B#7F1E2B

#7F1E2B is a dark, vivid red. Relative luminance 0.056; OKLCH L 39.9% C 0.131 H 18.3°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#7F1E2B
RGBrgb(127, 30, 43)
HSLhsl(352, 62%, 31%)
HSVhsv(352, 76%, 50%)
CMYKcmyk(0%, 76.4%, 66.1%, 50.2%)
CIE-LABlab(28.42, 41.81, 17.13)
CIE-LCHlch(28.42, 45.18, 22.29°)
OKLaboklab(39.92% 0.1243 0.0411)
OKLCHoklch(39.92% 0.131 18.3)
XYZxyz(9.6537, 5.6164, 2.8608)
Luminance0.0561 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E2B #1E7F72
analogous
#7F1E5B #7F1E2B #7F411E
triadic
#7F1E2B #2B7F1E #1E2B7F
tetradic
#7F1E2B #5B7F1E #1E7F72 #411E7F
square
#7F1E2B #5B7F1E #1E7F72 #411E7F
split-complementary
#7F1E2B #1E7F41 #1E5B7F
monochromatic
#1C0709 #4D121A #7F1E2B #B12A3C #D34458

Accessibility & contrast

On white

9.89
#7F1E2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#7F1E2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E2B
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E2B#FFFFFF#000000##FFFFFF
##7F1E2B1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39362B
Deuteranopia (green-blind)
#524A28
Tritanopia (blue-blind)
#8C0024
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1e2b;
/* rgb */ color: rgb(127, 30, 43);
/* oklch */ color: oklch(39.9% 0.131 18.3);
Tailwind
colors: {
  custom: {
    50: '#ab6264',
    500: '#7f1e2b',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e2b;
$custom-light: #ab6264;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e2b",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 43
  },
  "hsl": {
    "h": 351.959,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39925,
    "c": 0.13094,
    "h": 18.3
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#7F1E2B
secondary
#47B2A4
accent
#E5CF43
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7F1E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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