#54172F#54172F

#54172F is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.2% C 0.093 H 359.9°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#54172F
RGBrgb(84, 23, 47)
HSLhsl(336, 57%, 21%)
HSVhsv(336, 73%, 33%)
CMYKcmyk(0%, 72.6%, 44%, 67.1%)
CIE-LABlab(18.81, 30.50, -0.21)
CIE-LCHlch(18.81, 30.50, 359.60°)
OKLaboklab(31.23% 0.0933 -0.0002)
OKLCHoklch(31.23% 0.093 359.9)
XYZxyz(4.4759, 2.7034, 2.9749)
Luminance0.0270 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54172F #17543C
analogous
#54174D #54172F #541D17
triadic
#54172F #2F5417 #172F54
tetradic
#54172F #4D5417 #17543C #1D1754
square
#54172F #4D5417 #17543C #1D1754
split-complementary
#54172F #17541D #174D54
monochromatic
#18070D #240A14 #54172F #84244A #B43165

Accessibility & contrast

On white

13.63
#54172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#54172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54172F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54172F#FFFFFF#000000##FFFFFF
##54172F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232630
Deuteranopia (green-blind)
#33322E
Tritanopia (blue-blind)
#5B1021
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #54172f;
/* rgb */ color: rgb(84, 23, 47);
/* oklch */ color: oklch(31.2% 0.093 359.9);
Tailwind
colors: {
  custom: {
    50: '#875967',
    500: '#54172f',
    950: '#000000',
  },
}
SCSS
$custom: #54172f;
$custom-light: #875967;
$custom-dark: #000000;
JSON
{
  "hex": "#54172f",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 336.393,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31231,
    "c": 0.09334,
    "h": 359.9
  },
  "luminance": 0.02703
}

Semantic roles & 50–950 ramp

primary
#54172F
secondary
#3C8B6C
accent
#E0A448
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0406
muted
#7D797A

Preview Lab

Preview with #54172F

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

Preview Lab → · Contrast checker → · Palette generator →

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