#7F212F#7F212F

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

Color values

HEX#7F212F
RGBrgb(127, 33, 47)
HSLhsl(351, 59%, 31%)
HSVhsv(351, 74%, 50%)
CMYKcmyk(0%, 74%, 63%, 50.2%)
CIE-LABlab(28.92, 40.93, 15.13)
CIE-LCHlch(28.92, 43.63, 20.29°)
OKLaboklab(40.32% 0.1223 0.0369)
OKLCHoklch(40.32% 0.128 16.8)
XYZxyz(9.8103, 5.8064, 3.2929)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F212F #217F71
analogous
#7F215E #7F212F #7F4221
triadic
#7F212F #2F7F21 #212F7F
tetradic
#7F212F #5E7F21 #217F71 #42217F
square
#7F212F #5E7F21 #217F71 #42217F
split-complementary
#7F212F #217F42 #215E7F
monochromatic
#1E080B #4E141D #7F212F #B02E41 #D04A5E

Accessibility & contrast

On white

9.72
#7F212F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7F212F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F212F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F212F#FFFFFF#000000##FFFFFF
##7F212F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A382F
Deuteranopia (green-blind)
#524B2C
Tritanopia (blue-blind)
#8C0627
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f212f;
/* rgb */ color: rgb(127, 33, 47);
/* oklch */ color: oklch(40.3% 0.128 16.8);
Tailwind
colors: {
  custom: {
    50: '#aa6467',
    500: '#7f212f',
    950: '#000000',
  },
}
SCSS
$custom: #7f212f;
$custom-light: #aa6467;
$custom-dark: #000000;
JSON
{
  "hex": "#7f212f",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 47
  },
  "hsl": {
    "h": 351.064,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40319,
    "c": 0.12777,
    "h": 16.8
  },
  "luminance": 0.05805
}

Semantic roles & 50–950 ramp

primary
#7F212F
secondary
#4AB2A2
accent
#E2CB46
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7F212F

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

Preview Lab → · Contrast checker → · Palette generator →

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