#52172C#52172C

#52172C is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.8% C 0.090 H 2.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#52172C
RGBrgb(82, 23, 44)
HSLhsl(339, 56%, 21%)
HSVhsv(339, 72%, 32%)
CMYKcmyk(0%, 72%, 46.3%, 67.8%)
CIE-LABlab(18.32, 29.43, 1.14)
CIE-LCHlch(18.32, 29.45, 2.22°)
OKLaboklab(30.75% 0.09 0.0033)
OKLCHoklch(30.75% 0.09 2.1)
XYZxyz(4.2410, 2.5890, 2.6588)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52172C #17523D
analogous
#521749 #52172C #521F17
triadic
#52172C #2C5217 #172C52
tetradic
#52172C #495217 #17523D #1F1752
square
#52172C #495217 #17523D #1F1752
split-complementary
#52172C #17521F #174952
monochromatic
#18070D #220A12 #52172C #822446 #B2325F

Accessibility & contrast

On white

13.84
#52172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52172C
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52172C#FFFFFF#000000##FFFFFF
##52172C1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252D
Deuteranopia (green-blind)
#33312B
Tritanopia (blue-blind)
#59101F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #52172c;
/* rgb */ color: rgb(82, 23, 44);
/* oklch */ color: oklch(30.8% 0.090 2.1);
Tailwind
colors: {
  custom: {
    50: '#865864',
    500: '#52172c',
    950: '#000000',
  },
}
SCSS
$custom: #52172c;
$custom-light: #865864;
$custom-dark: #000000;
JSON
{
  "hex": "#52172c",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 338.644,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30753,
    "c": 0.09003,
    "h": 2.1
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#52172C
secondary
#3C896E
accent
#DFAA48
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0305
muted
#7D787A

Preview Lab

Preview with #52172C

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

Preview Lab → · Contrast checker → · Palette generator →

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