#52174A#52174A

#52174A is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.2% C 0.110 H 333.7°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#52174A
RGBrgb(82, 23, 74)
HSLhsl(308, 56%, 21%)
HSVhsv(308, 72%, 32%)
CMYKcmyk(0%, 72%, 9.8%, 67.8%)
CIE-LABlab(19.64, 33.98, -17.79)
CIE-LCHlch(19.64, 38.36, 332.37°)
OKLaboklab(32.16% 0.0982 -0.0486)
OKLCHoklch(32.16% 0.11 333.7)
XYZxyz(5.0221, 2.9014, 6.7728)
Luminance0.0290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52174A #17521F
analogous
#3C1752 #52174A #52172C
triadic
#52174A #4A5217 #174A52
tetradic
#52174A #523C17 #17521F #172C52
square
#52174A #523C17 #17521F #172C52
split-complementary
#52174A #2C5217 #17523C
monochromatic
#180716 #220A1F #52174A #822475 #B232A0

Accessibility & contrast

On white

13.29
#52174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#52174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52174A
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52174A#FFFFFF#000000##FFFFFF
##52174A1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162A4B
Deuteranopia (green-blind)
#2A3349
Tritanopia (blue-blind)
#561C2E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #52174a;
/* rgb */ color: rgb(82, 23, 74);
/* oklch */ color: oklch(32.2% 0.110 333.7);
Tailwind
colors: {
  custom: {
    50: '#85597c',
    500: '#52174a',
    950: '#000000',
  },
}
SCSS
$custom: #52174a;
$custom-light: #85597c;
$custom-dark: #000000;
JSON
{
  "hex": "#52174a",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 308.136,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32163,
    "c": 0.10962,
    "h": 333.7
  },
  "luminance": 0.02901
}

Semantic roles & 50–950 ramp

primary
#52174A
secondary
#3C8946
accent
#DF5D48
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #52174A

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

Preview Lab → · Contrast checker → · Palette generator →

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