#52174F#52174F

#52174F is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.5% C 0.114 H 329.9°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#52174F
RGBrgb(82, 23, 79)
HSLhsl(303, 56%, 21%)
HSVhsv(303, 72%, 32%)
CMYKcmyk(0%, 72%, 3.7%, 67.8%)
CIE-LABlab(19.93, 34.91, -20.74)
CIE-LCHlch(19.93, 40.61, 329.28°)
OKLaboklab(32.46% 0.0987 -0.0571)
OKLCHoklch(32.46% 0.114 329.9)
XYZxyz(5.1973, 2.9715, 7.6954)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52174F #17521A
analogous
#371752 #52174F #521731
triadic
#52174F #4F5217 #174F52
tetradic
#52174F #523717 #17521A #173152
square
#52174F #523717 #17521A #173152
split-complementary
#52174F #315217 #175237
monochromatic
#180717 #220A21 #52174F #82247D #B232AB

Accessibility & contrast

On white

13.17
#52174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#52174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52174F
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52174F#FFFFFF#000000##FFFFFF
##52174F1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122B51
Deuteranopia (green-blind)
#27334D
Tritanopia (blue-blind)
#551E30
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #52174f;
/* rgb */ color: rgb(82, 23, 79);
/* oklch */ color: oklch(32.5% 0.114 329.9);
Tailwind
colors: {
  custom: {
    50: '#855a80',
    500: '#52174f',
    950: '#000000',
  },
}
SCSS
$custom: #52174f;
$custom-light: #855a80;
$custom-dark: #000000;
JSON
{
  "hex": "#52174f",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 303.051,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32462,
    "c": 0.11408,
    "h": 329.9
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#52174F
secondary
#3C8940
accent
#DF5048
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #52174F

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

Preview Lab → · Contrast checker → · Palette generator →

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