#50171F#50171F

#50171F is a dark, moderate red. Relative luminance 0.024; OKLCH L 30.0% C 0.085 H 15.7°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#50171F
RGBrgb(80, 23, 31)
HSLhsl(352, 55%, 20%)
HSVhsv(352, 71%, 31%)
CMYKcmyk(0%, 71.2%, 61.2%, 68.6%)
CIE-LABlab(17.54, 27.32, 9.26)
CIE-LCHlch(17.54, 28.85, 18.73°)
OKLaboklab(29.98% 0.0821 0.023)
OKLCHoklch(29.98% 0.085 15.7)
XYZxyz(3.8623, 2.4177, 1.5593)
Luminance0.0242 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50171F #175048
analogous
#50173B #50171F #502B17
triadic
#50171F #1F5017 #171F50
tetradic
#50171F #3B5017 #175048 #2B1750
square
#50171F #3B5017 #175048 #2B1750
split-complementary
#50171F #17502B #173B50
monochromatic
#180709 #20090D #50171F #802531 #AF3244

Accessibility & contrast

On white

14.16
#50171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#50171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50171F
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50171F#FFFFFF#000000##FFFFFF
##50171F1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25241F
Deuteranopia (green-blind)
#332F1E
Tritanopia (blue-blind)
#580C1A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #50171f;
/* rgb */ color: rgb(80, 23, 31);
/* oklch */ color: oklch(30.0% 0.085 15.7);
Tailwind
colors: {
  custom: {
    50: '#85585a',
    500: '#50171f',
    950: '#000000',
  },
}
SCSS
$custom: #50171f;
$custom-light: #85585a;
$custom-dark: #000000;
JSON
{
  "hex": "#50171f",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 351.579,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29979,
    "c": 0.08522,
    "h": 15.7
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#50171F
secondary
#3C877D
accent
#DFCA49
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #50171F

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

Preview Lab → · Contrast checker → · Palette generator →

#50171F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva