#52172B#52172B

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

Color values

HEX#52172B
RGBrgb(82, 23, 43)
HSLhsl(340, 56%, 21%)
HSVhsv(340, 72%, 32%)
CMYKcmyk(0%, 72%, 47.6%, 67.8%)
CIE-LABlab(18.28, 29.31, 1.81)
CIE-LCHlch(18.28, 29.36, 3.53°)
OKLaboklab(30.72% 0.0896 0.005)
OKLCHoklch(30.72% 0.09 3.2)
XYZxyz(4.2224, 2.5816, 2.5610)
Luminance0.0258 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52172B #17523E
analogous
#521748 #52172B #522017
triadic
#52172B #2B5217 #172B52
tetradic
#52172B #485217 #17523E #201752
square
#52172B #485217 #17523E #201752
split-complementary
#52172B #175220 #174852
monochromatic
#18070D #220A12 #52172B #822444 #B2325D

Accessibility & contrast

On white

13.85
#52172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52172B
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52172B#FFFFFF#000000##FFFFFF
##52172B1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252C
Deuteranopia (green-blind)
#33312A
Tritanopia (blue-blind)
#590F1F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #52172b;
/* rgb */ color: rgb(82, 23, 43);
/* oklch */ color: oklch(30.7% 0.090 3.2);
Tailwind
colors: {
  custom: {
    50: '#865864',
    500: '#52172b',
    950: '#000000',
  },
}
SCSS
$custom: #52172b;
$custom-light: #865864;
$custom-dark: #000000;
JSON
{
  "hex": "#52172b",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 339.661,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30718,
    "c": 0.0897,
    "h": 3.2
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#52172B
secondary
#3C896F
accent
#DFAC48
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #52172B

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

Preview Lab → · Contrast checker → · Palette generator →

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