#52185A#52185A

#52185A is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.123 H 322.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#52185A
RGBrgb(82, 24, 90)
HSLhsl(293, 58%, 22%)
HSVhsv(293, 73%, 35%)
CMYKcmyk(8.9%, 73.3%, 0%, 64.7%)
CIE-LABlab(20.77, 36.65, -26.80)
CIE-LCHlch(20.77, 45.41, 323.83°)
OKLaboklab(33.29% 0.0978 -0.0747)
OKLCHoklch(33.29% 0.123 322.6)
XYZxyz(5.6516, 3.1856, 9.9881)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52185A #205A18
analogous
#31185A #52185A #5A1841
triadic
#52185A #5A5218 #185A52
tetradic
#52185A #5A3118 #205A18 #18415A
square
#52185A #5A3118 #205A18 #18415A
split-complementary
#52185A #415A18 #185A31
monochromatic
#160618 #260B2A #52185A #7E258A #AA32BB

Accessibility & contrast

On white

12.83
#52185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#52185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52185A
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52185A#FFFFFF#000000##FFFFFF
##52185A1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5C
Deuteranopia (green-blind)
#213458
Tritanopia (blue-blind)
#532337
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52185a;
/* rgb */ color: rgb(82, 24, 90);
/* oklch */ color: oklch(33.3% 0.123 322.6);
Tailwind
colors: {
  custom: {
    50: '#855b89',
    500: '#52185a',
    950: '#000000',
  },
}
SCSS
$custom: #52185a;
$custom-light: #855b89;
$custom-dark: #000000;
JSON
{
  "hex": "#52185a",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 292.727,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3329,
    "c": 0.12307,
    "h": 322.6
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#52185A
secondary
#47913D
accent
#E14759
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52185A

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

Preview Lab → · Contrast checker → · Palette generator →

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