#7F1821#7F1821

#7F1821 is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.2% C 0.137 H 22.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#7F1821
RGBrgb(127, 24, 33)
HSLhsl(355, 68%, 30%)
HSVhsv(355, 81%, 50%)
CMYKcmyk(0%, 81.1%, 74%, 50.2%)
CIE-LABlab(27.51, 43.31, 22.56)
CIE-LCHlch(27.51, 48.84, 27.51°)
OKLaboklab(39.19% 0.1269 0.0517)
OKLCHoklch(39.19% 0.137 22.2)
XYZxyz(9.3546, 5.2766, 1.9645)
Luminance0.0527 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1821 #187F76
analogous
#7F1855 #7F1821 #7F4218
triadic
#7F1821 #217F18 #18217F
tetradic
#7F1821 #557F18 #187F76 #42187F
square
#7F1821 #557F18 #187F76 #42187F
split-complementary
#7F1821 #187F42 #18557F
monochromatic
#1A0507 #4C0E14 #7F1821 #B2222E #D93846

Accessibility & contrast

On white

10.22
#7F1821 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#7F1821 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1821
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1821#FFFFFF#000000##FFFFFF
##7F18211.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373320
Deuteranopia (green-blind)
#51491D
Tritanopia (blue-blind)
#8C001C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f1821;
/* rgb */ color: rgb(127, 24, 33);
/* oklch */ color: oklch(39.2% 0.137 22.2);
Tailwind
colors: {
  custom: {
    50: '#ac605c',
    500: '#7f1821',
    950: '#000000',
  },
}
SCSS
$custom: #7f1821;
$custom-light: #ac605c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1821",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 33
  },
  "hsl": {
    "h": 354.757,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3919,
    "c": 0.13698,
    "h": 22.2
  },
  "luminance": 0.05275
}

Semantic roles & 50–950 ramp

primary
#7F1821
secondary
#3FB3A9
accent
#EBDC3D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7F1821

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

Preview Lab → · Contrast checker → · Palette generator →

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