#7F1E27#7F1E27

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

Color values

HEX#7F1E27
RGBrgb(127, 30, 39)
HSLhsl(354, 62%, 31%)
HSVhsv(354, 76%, 50%)
CMYKcmyk(0%, 76.4%, 69.3%, 50.2%)
CIE-LABlab(28.35, 41.56, 19.67)
CIE-LCHlch(28.35, 45.98, 25.33°)
OKLaboklab(39.85% 0.1227 0.0463)
OKLCHoklch(39.85% 0.131 20.7)
XYZxyz(9.5839, 5.5885, 2.4931)
Luminance0.0559 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E27 #1E7F76
analogous
#7F1E57 #7F1E27 #7F451E
triadic
#7F1E27 #277F1E #1E277F
tetradic
#7F1E27 #577F1E #1E7F76 #451E7F
square
#7F1E27 #577F1E #1E7F76 #451E7F
split-complementary
#7F1E27 #1E7F45 #1E577F
monochromatic
#1C0709 #4D1218 #7F1E27 #B12A36 #D34452

Accessibility & contrast

On white

9.92
#7F1E27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1E27
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E27#FFFFFF#000000##FFFFFF
##7F1E271.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3627
Deuteranopia (green-blind)
#524A24
Tritanopia (blue-blind)
#8C0022
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1e27;
/* rgb */ color: rgb(127, 30, 39);
/* oklch */ color: oklch(39.8% 0.131 20.7);
Tailwind
colors: {
  custom: {
    50: '#ab6261',
    500: '#7f1e27',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e27;
$custom-light: #ab6261;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e27",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 39
  },
  "hsl": {
    "h": 354.433,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39847,
    "c": 0.13111,
    "h": 20.7
  },
  "luminance": 0.05587
}

Semantic roles & 50–950 ramp

primary
#7F1E27
secondary
#47B2A8
accent
#E5D643
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7F1E27

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

Preview Lab → · Contrast checker → · Palette generator →

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