#7F212A#7F212A

#7F212A is a dark, vivid red. Relative luminance 0.058; OKLCH L 40.2% C 0.128 H 19.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#7F212A
RGBrgb(127, 33, 42)
HSLhsl(354, 59%, 31%)
HSVhsv(354, 74%, 50%)
CMYKcmyk(0%, 74%, 66.9%, 50.2%)
CIE-LABlab(28.82, 40.59, 18.30)
CIE-LCHlch(28.82, 44.52, 24.27°)
OKLaboklab(40.21% 0.1202 0.0436)
OKLCHoklch(40.21% 0.128 19.9)
XYZxyz(9.7152, 5.7683, 2.7919)
Luminance0.0577 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F212A #217F76
analogous
#7F2159 #7F212A #7F4721
triadic
#7F212A #2A7F21 #212A7F
tetradic
#7F212A #597F21 #217F76 #47217F
square
#7F212A #597F21 #217F76 #47217F
split-complementary
#7F212A #217F47 #21597F
monochromatic
#1E080A #4E141A #7F212A #B02E3A #D04A57

Accessibility & contrast

On white

9.75
#7F212A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7F212A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F212A
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F212A#FFFFFF#000000##FFFFFF
##7F212A1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B372A
Deuteranopia (green-blind)
#534B27
Tritanopia (blue-blind)
#8C0325
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f212a;
/* rgb */ color: rgb(127, 33, 42);
/* oklch */ color: oklch(40.2% 0.128 19.9);
Tailwind
colors: {
  custom: {
    50: '#aa6463',
    500: '#7f212a',
    950: '#000000',
  },
}
SCSS
$custom: #7f212a;
$custom-light: #aa6463;
$custom-dark: #000000;
JSON
{
  "hex": "#7f212a",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 42
  },
  "hsl": {
    "h": 354.255,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40214,
    "c": 0.12789,
    "h": 19.9
  },
  "luminance": 0.05767
}

Semantic roles & 50–950 ramp

primary
#7F212A
secondary
#4AB2A8
accent
#E2D346
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7F212A

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

Preview Lab → · Contrast checker → · Palette generator →

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