#5B172E#5B172E

#5B172E is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.5% C 0.101 H 4.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#5B172E
RGBrgb(91, 23, 46)
HSLhsl(340, 60%, 22%)
HSVhsv(340, 75%, 36%)
CMYKcmyk(0%, 74.7%, 49.5%, 64.3%)
CIE-LABlab(20.18, 32.80, 2.65)
CIE-LCHlch(20.18, 32.91, 4.62°)
OKLaboklab(32.5% 0.1003 0.0072)
OKLCHoklch(32.5% 0.101 4.1)
XYZxyz(5.1143, 3.0348, 2.9007)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B172E #175B44
analogous
#5B1750 #5B172E #5B2217
triadic
#5B172E #2E5B17 #172E5B
tetradic
#5B172E #505B17 #175B44 #22175B
square
#5B172E #505B17 #175B44 #22175B
split-complementary
#5B172E #175B22 #17505B
monochromatic
#18060C #2A0B15 #5B172E #8C2347 #BD305F

Accessibility & contrast

On white

13.07
#5B172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5B172E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B172E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B172E#FFFFFF#000000##FFFFFF
##5B172E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26282F
Deuteranopia (green-blind)
#38362C
Tritanopia (blue-blind)
#630C20
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b172e;
/* rgb */ color: rgb(91, 23, 46);
/* oklch */ color: oklch(32.5% 0.101 4.1);
Tailwind
colors: {
  custom: {
    50: '#8d5a66',
    500: '#5b172e',
    950: '#000000',
  },
}
SCSS
$custom: #5b172e;
$custom-light: #8d5a66;
$custom-dark: #000000;
JSON
{
  "hex": "#5b172e",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 339.706,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32496,
    "c": 0.10052,
    "h": 4.1
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#5B172E
secondary
#3C9275
accent
#E3AD45
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5B172E

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

Preview Lab → · Contrast checker → · Palette generator →

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