#52172E#52172E

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

Color values

HEX#52172E
RGBrgb(82, 23, 46)
HSLhsl(337, 56%, 21%)
HSVhsv(337, 72%, 32%)
CMYKcmyk(0%, 72%, 43.9%, 67.8%)
CIE-LABlab(18.38, 29.67, -0.18)
CIE-LCHlch(18.38, 29.67, 359.65°)
OKLaboklab(30.83% 0.0908 -0.0001)
OKLCHoklch(30.83% 0.091 359.9)
XYZxyz(4.2795, 2.6044, 2.8616)
Luminance0.0260 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52172E #17523B
analogous
#52174B #52172E #521D17
triadic
#52172E #2E5217 #172E52
tetradic
#52172E #4B5217 #17523B #1D1752
square
#52172E #4B5217 #17523B #1D1752
split-complementary
#52172E #17521D #174B52
monochromatic
#18070D #220A13 #52172E #822449 #B23264

Accessibility & contrast

On white

13.81
#52172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52172E
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52172E#FFFFFF#000000##FFFFFF
##52172E1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22262F
Deuteranopia (green-blind)
#32312D
Tritanopia (blue-blind)
#591120
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #52172e;
/* rgb */ color: rgb(82, 23, 46);
/* oklch */ color: oklch(30.8% 0.091 359.9);
Tailwind
colors: {
  custom: {
    50: '#865866',
    500: '#52172e',
    950: '#000000',
  },
}
SCSS
$custom: #52172e;
$custom-light: #865866;
$custom-dark: #000000;
JSON
{
  "hex": "#52172e",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 336.61,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30826,
    "c": 0.09077,
    "h": 359.9
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#52172E
secondary
#3C896B
accent
#DFA548
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #52172E

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

Preview Lab → · Contrast checker → · Palette generator →

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