#52174B#52174B

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

Color values

HEX#52174B
RGBrgb(82, 23, 75)
HSLhsl(307, 56%, 21%)
HSVhsv(307, 72%, 32%)
CMYKcmyk(0%, 72%, 8.5%, 67.8%)
CIE-LABlab(19.70, 34.16, -18.38)
CIE-LCHlch(19.70, 38.80, 331.72°)
OKLaboklab(32.22% 0.0984 -0.0503)
OKLCHoklch(32.22% 0.11 332.9)
XYZxyz(5.0561, 2.9150, 6.9516)
Luminance0.0291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52174B #17521E
analogous
#3B1752 #52174B #52172D
triadic
#52174B #4B5217 #174B52
tetradic
#52174B #523B17 #17521E #172D52
square
#52174B #523B17 #17521E #172D52
split-complementary
#52174B #2D5217 #17523B
monochromatic
#180716 #220A1F #52174B #822477 #B232A2

Accessibility & contrast

On white

13.27
#52174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52174B
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52174B#FFFFFF#000000##FFFFFF
##52174B1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152A4D
Deuteranopia (green-blind)
#293349
Tritanopia (blue-blind)
#561C2E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #52174b;
/* rgb */ color: rgb(82, 23, 75);
/* oklch */ color: oklch(32.2% 0.110 332.9);
Tailwind
colors: {
  custom: {
    50: '#855a7d',
    500: '#52174b',
    950: '#000000',
  },
}
SCSS
$custom: #52174b;
$custom-light: #855a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#52174b",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 307.119,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32221,
    "c": 0.11049,
    "h": 332.9
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#52174B
secondary
#3C8945
accent
#DF5A48
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #52174B

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

Preview Lab → · Contrast checker → · Palette generator →

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