#7F182A#7F182A

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

Color values

HEX#7F182A
RGBrgb(127, 24, 42)
HSLhsl(350, 68%, 30%)
HSVhsv(350, 81%, 50%)
CMYKcmyk(0%, 81.1%, 66.9%, 50.2%)
CIE-LABlab(27.67, 43.81, 16.82)
CIE-LCHlch(27.67, 46.93, 21.01°)
OKLaboklab(39.36% 0.1305 0.0403)
OKLCHoklch(39.36% 0.137 17.1)
XYZxyz(9.4980, 5.3339, 2.7195)
Luminance0.0533 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F182A #187F6D
analogous
#7F185D #7F182A #7F3A18
triadic
#7F182A #2A7F18 #182A7F
tetradic
#7F182A #5D7F18 #187F6D #3A187F
square
#7F182A #5D7F18 #187F6D #3A187F
split-complementary
#7F182A #187F3A #185D7F
monochromatic
#1A0509 #4C0E19 #7F182A #B2223B #D93854

Accessibility & contrast

On white

10.16
#7F182A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F182A
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F182A#FFFFFF#000000##FFFFFF
##7F182A1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36342A
Deuteranopia (green-blind)
#504927
Tritanopia (blue-blind)
#8C0020
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f182a;
/* rgb */ color: rgb(127, 24, 42);
/* oklch */ color: oklch(39.4% 0.137 17.1);
Tailwind
colors: {
  custom: {
    50: '#ab6063',
    500: '#7f182a',
    950: '#000000',
  },
}
SCSS
$custom: #7f182a;
$custom-light: #ab6063;
$custom-dark: #000000;
JSON
{
  "hex": "#7f182a",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 42
  },
  "hsl": {
    "h": 349.515,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39357,
    "c": 0.13661,
    "h": 17.1
  },
  "luminance": 0.05332
}

Semantic roles & 50–950 ramp

primary
#7F182A
secondary
#3FB39F
accent
#EBCD3D
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110505
muted
#807A79

Preview Lab

Preview with #7F182A

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

Preview Lab → · Contrast checker → · Palette generator →

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