#52176A#52176A

#52176A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.4% C 0.140 H 314.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#52176A
RGBrgb(82, 23, 106)
HSLhsl(283, 64%, 25%)
HSVhsv(283, 78%, 42%)
CMYKcmyk(22.6%, 78.3%, 0%, 58.4%)
CIE-LABlab(21.75, 40.55, -35.76)
CIE-LCHlch(21.75, 54.06, 318.59°)
OKLaboklab(34.35% 0.0975 -0.101)
OKLCHoklch(34.35% 0.14 314)
XYZxyz(6.3871, 3.4475, 13.9618)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52176A #2F6A17
analogous
#29176A #52176A #6A1758
triadic
#52176A #6A5217 #176A52
tetradic
#52176A #6A2917 #2F6A17 #17586A
square
#52176A #6A2917 #2F6A17 #17586A
split-complementary
#52176A #586A17 #176A29
monochromatic
#130519 #2B0C38 #52176A #79229C #A02DCF

Accessibility & contrast

On white

12.43
#52176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#52176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52176A
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52176A#FFFFFF#000000##FFFFFF
##52176A1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#113568
Tritanopia (blue-blind)
#50293F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52176a;
/* rgb */ color: rgb(82, 23, 106);
/* oklch */ color: oklch(34.4% 0.140 314.0);
Tailwind
colors: {
  custom: {
    50: '#865b95',
    500: '#52176a',
    950: '#000000',
  },
}
SCSS
$custom: #52176a;
$custom-light: #865b95;
$custom-dark: #000000;
JSON
{
  "hex": "#52176a",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 282.651,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34351,
    "c": 0.14032,
    "h": 314
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#52176A
secondary
#59A03D
accent
#E74071
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52176A

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

Preview Lab → · Contrast checker → · Palette generator →

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