#52172F#52172F

#52172F is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.9% C 0.091 H 358.8°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#52172F
RGBrgb(82, 23, 47)
HSLhsl(336, 56%, 21%)
HSVhsv(336, 72%, 32%)
CMYKcmyk(0%, 72%, 42.7%, 67.8%)
CIE-LABlab(18.42, 29.79, -0.84)
CIE-LCHlch(18.42, 29.80, 358.39°)
OKLaboklab(30.86% 0.0912 -0.0018)
OKLCHoklch(30.86% 0.091 358.8)
XYZxyz(4.2994, 2.6124, 2.9666)
Luminance0.0261 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52172F #17523A
analogous
#52174C #52172F #521C17
triadic
#52172F #2F5217 #172F52
tetradic
#52172F #4C5217 #17523A #1C1752
square
#52172F #4C5217 #17523A #1C1752
split-complementary
#52172F #17521C #174C52
monochromatic
#18070E #220A14 #52172F #82244A #B23266

Accessibility & contrast

On white

13.79
#52172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#52172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52172F
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52172F#FFFFFF#000000##FFFFFF
##52172F1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222630
Deuteranopia (green-blind)
#32312E
Tritanopia (blue-blind)
#591121
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #52172f;
/* rgb */ color: rgb(82, 23, 47);
/* oklch */ color: oklch(30.9% 0.091 358.8);
Tailwind
colors: {
  custom: {
    50: '#865967',
    500: '#52172f',
    950: '#000000',
  },
}
SCSS
$custom: #52172f;
$custom-light: #865967;
$custom-dark: #000000;
JSON
{
  "hex": "#52172f",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 335.593,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30863,
    "c": 0.09118,
    "h": 358.8
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#52172F
secondary
#3C896A
accent
#DFA248
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #52172F

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

Preview Lab → · Contrast checker → · Palette generator →

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