#5F2117#5F2117

#5F2117 is a dark, moderate red. Relative luminance 0.036; OKLCH L 34.0% C 0.093 H 31.5°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5F2117
RGBrgb(95, 33, 23)
HSLhsl(8, 61%, 23%)
HSVhsv(8, 76%, 37%)
CMYKcmyk(0%, 65.3%, 75.8%, 62.7%)
CIE-LABlab(22.24, 27.59, 21.22)
CIE-LCHlch(22.24, 34.81, 37.56°)
OKLaboklab(34.02% 0.0793 0.0485)
OKLCHoklch(34.02% 0.093 31.5)
XYZxyz(5.4184, 3.5832, 1.2168)
Luminance0.0358 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2117 #17555F
analogous
#5F1731 #5F2117 #5F4517
triadic
#5F2117 #175F21 #21175F
tetradic
#5F2117 #315F17 #17555F #45175F
square
#5F2117 #315F17 #17555F #45175F
split-complementary
#5F2117 #175F45 #17315F
monochromatic
#190906 #2E100B #5F2117 #903223 #C2432F

Accessibility & contrast

On white

12.23
#5F2117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F2117 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2117
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2117#FFFFFF#000000##FFFFFF
##5F21171.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322D16
Deuteranopia (green-blind)
#413A15
Tritanopia (blue-blind)
#69131F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f2117;
/* rgb */ color: rgb(95, 33, 23);
/* oklch */ color: oklch(34.0% 0.093 31.5);
Tailwind
colors: {
  custom: {
    50: '#925f54',
    500: '#5f2117',
    950: '#000000',
  },
}
SCSS
$custom: #5f2117;
$custom-light: #925f54;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2117",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 23
  },
  "hsl": {
    "h": 8.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34019,
    "c": 0.09292,
    "h": 31.5
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#5F2117
secondary
#3C8996
accent
#CEE444
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0502
muted
#7E7978

Preview Lab

Preview with #5F2117

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

Preview Lab → · Contrast checker → · Palette generator →

#5F2117 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva