#52185B#52185B

#52185B is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.124 H 322.0°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#52185B
RGBrgb(82, 24, 91)
HSLhsl(292, 58%, 23%)
HSVhsv(292, 74%, 36%)
CMYKcmyk(9.9%, 73.6%, 0%, 64.3%)
CIE-LABlab(20.84, 36.86, -27.36)
CIE-LCHlch(20.84, 45.91, 323.42°)
OKLaboklab(33.36% 0.0978 -0.0764)
OKLCHoklch(33.36% 0.124 322)
XYZxyz(5.6944, 3.2027, 10.2138)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52185B #215B18
analogous
#30185B #52185B #5B1843
triadic
#52185B #5B5218 #185B52
tetradic
#52185B #5B3018 #215B18 #18435B
square
#52185B #5B3018 #215B18 #18435B
split-complementary
#52185B #435B18 #185B30
monochromatic
#160618 #260B2B #52185B #7E258B #A932BC

Accessibility & contrast

On white

12.80
#52185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52185B
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52185B#FFFFFF#000000##FFFFFF
##52185B1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032E5D
Deuteranopia (green-blind)
#213459
Tritanopia (blue-blind)
#532437
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52185b;
/* rgb */ color: rgb(82, 24, 91);
/* oklch */ color: oklch(33.4% 0.124 322.0);
Tailwind
colors: {
  custom: {
    50: '#855b8a',
    500: '#52185b',
    950: '#000000',
  },
}
SCSS
$custom: #52185b;
$custom-light: #855b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#52185b",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 291.94,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33358,
    "c": 0.12406,
    "h": 322
  },
  "luminance": 0.03202
}

Semantic roles & 50–950 ramp

primary
#52185B
secondary
#49923D
accent
#E1465B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52185B

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

Preview Lab → · Contrast checker → · Palette generator →

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