#7F1731#7F1731

#7F1731 is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.4% C 0.138 H 12.6°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#7F1731
RGBrgb(127, 23, 49)
HSLhsl(345, 69%, 29%)
HSVhsv(345, 82%, 50%)
CMYKcmyk(0%, 81.9%, 61.4%, 50.2%)
CIE-LABlab(27.70, 44.59, 12.18)
CIE-LCHlch(27.70, 46.22, 15.28°)
OKLaboklab(39.43% 0.1345 0.0301)
OKLCHoklch(39.43% 0.138 12.6)
XYZxyz(9.6142, 5.3480, 3.4312)
Luminance0.0535 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1731 #177F65
analogous
#7F1765 #7F1731 #7F3117
triadic
#7F1731 #317F17 #17317F
tetradic
#7F1731 #657F17 #177F65 #31177F
square
#7F1731 #657F17 #177F65 #31177F
split-complementary
#7F1731 #177F31 #17657F
monochromatic
#1A050A #4B0E1D #7F1731 #B32045 #DB365F

Accessibility & contrast

On white

10.15
#7F1731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#7F1731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1731
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1731#FFFFFF#000000##FFFFFF
##7F17311.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353431
Deuteranopia (green-blind)
#4F492E
Tritanopia (blue-blind)
#8C0022
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f1731;
/* rgb */ color: rgb(127, 23, 49);
/* oklch */ color: oklch(39.4% 0.138 12.6);
Tailwind
colors: {
  custom: {
    50: '#aa6068',
    500: '#7f1731',
    950: '#000000',
  },
}
SCSS
$custom: #7f1731;
$custom-light: #aa6068;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1731",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 49
  },
  "hsl": {
    "h": 345,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39434,
    "c": 0.13782,
    "h": 12.6
  },
  "luminance": 0.05347
}

Semantic roles & 50–950 ramp

primary
#7F1731
secondary
#3EB496
accent
#ECC03C
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110506
muted
#807A7A

Preview Lab

Preview with #7F1731

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

Preview Lab → · Contrast checker → · Palette generator →

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