#52172A#52172A

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

Color values

HEX#52172A
RGBrgb(82, 23, 42)
HSLhsl(341, 56%, 21%)
HSVhsv(341, 72%, 32%)
CMYKcmyk(0%, 72%, 48.8%, 67.8%)
CIE-LABlab(18.25, 29.19, 2.47)
CIE-LCHlch(18.25, 29.30, 4.84°)
OKLaboklab(30.68% 0.0891 0.0067)
OKLCHoklch(30.68% 0.089 4.3)
XYZxyz(4.2043, 2.5743, 2.4655)
Luminance0.0257 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52172A #17523F
analogous
#521747 #52172A #522117
triadic
#52172A #2A5217 #172A52
tetradic
#52172A #475217 #17523F #211752
square
#52172A #475217 #17523F #211752
split-complementary
#52172A #175221 #174752
monochromatic
#18070C #220A12 #52172A #822442 #B2325B

Accessibility & contrast

On white

13.86
#52172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#52172A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52172A
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52172A#FFFFFF#000000##FFFFFF
##52172A1.0013.861.5113.86
#FFFFFF13.861.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23252A
Deuteranopia (green-blind)
#333129
Tritanopia (blue-blind)
#5A0F1F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #52172a;
/* rgb */ color: rgb(82, 23, 42);
/* oklch */ color: oklch(30.7% 0.089 4.3);
Tailwind
colors: {
  custom: {
    50: '#865863',
    500: '#52172a',
    950: '#000000',
  },
}
SCSS
$custom: #52172a;
$custom-light: #865863;
$custom-dark: #000000;
JSON
{
  "hex": "#52172a",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 340.678,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30684,
    "c": 0.08939,
    "h": 4.3
  },
  "luminance": 0.02574
}

Semantic roles & 50–950 ramp

primary
#52172A
secondary
#3C8970
accent
#DFAF48
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #52172A

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

Preview Lab → · Contrast checker → · Palette generator →

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