#7F181C#7F181C

#7F181C is a dark, vivid red. Relative luminance 0.052; OKLCH L 39.1% C 0.137 H 24.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#7F181C
RGBrgb(127, 24, 28)
HSLhsl(358, 68%, 30%)
HSVhsv(358, 81%, 50%)
CMYKcmyk(0%, 81.1%, 78%, 50.2%)
CIE-LABlab(27.44, 43.09, 25.67)
CIE-LCHlch(27.44, 50.16, 30.79°)
OKLaboklab(39.11% 0.1249 0.0573)
OKLCHoklch(39.11% 0.137 24.6)
XYZxyz(9.2897, 5.2506, 1.6227)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F181C #187F7B
analogous
#7F1850 #7F181C #7F4818
triadic
#7F181C #1C7F18 #181C7F
tetradic
#7F181C #507F18 #187F7B #48187F
square
#7F181C #507F18 #187F7B #48187F
split-complementary
#7F181C #187F48 #18507F
monochromatic
#1A0506 #4C0E11 #7F181C #B22227 #D9383E

Accessibility & contrast

On white

10.24
#7F181C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7F181C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F181C
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F181C#FFFFFF#000000##FFFFFF
##7F181C1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38331B
Deuteranopia (green-blind)
#514918
Tritanopia (blue-blind)
#8C001B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f181c;
/* rgb */ color: rgb(127, 24, 28);
/* oklch */ color: oklch(39.1% 0.137 24.6);
Tailwind
colors: {
  custom: {
    50: '#ac6058',
    500: '#7f181c',
    950: '#000000',
  },
}
SCSS
$custom: #7f181c;
$custom-light: #ac6058;
$custom-dark: #000000;
JSON
{
  "hex": "#7f181c",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 28
  },
  "hsl": {
    "h": 357.67,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39114,
    "c": 0.13747,
    "h": 24.6
  },
  "luminance": 0.05249
}

Semantic roles & 50–950 ramp

primary
#7F181C
secondary
#3FB3AF
accent
#EBE43D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F181C

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

Preview Lab → · Contrast checker → · Palette generator →

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