#52186C#52186C

#52186C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.141 H 312.9°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#52186C
RGBrgb(82, 24, 108)
HSLhsl(281, 64%, 26%)
HSVhsv(281, 78%, 42%)
CMYKcmyk(24.1%, 77.8%, 0%, 57.6%)
CIE-LABlab(22.05, 40.58, -36.58)
CIE-LCHlch(22.05, 54.63, 317.97°)
OKLaboklab(34.61% 0.0961 -0.1034)
OKLCHoklch(34.61% 0.141 312.9)
XYZxyz(6.5126, 3.5300, 14.5227)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52186C #326C18
analogous
#28186C #52186C #6C185C
triadic
#52186C #6C5218 #186C52
tetradic
#52186C #6C2818 #326C18 #185C6C
square
#52186C #6C2818 #326C18 #185C6C
split-complementary
#52186C #5C6C18 #186C28
monochromatic
#130619 #2C0D3A #52186C #78239E #9E2ED0

Accessibility & contrast

On white

12.31
#52186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#52186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52186C
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52186C#FFFFFF#000000##FFFFFF
##52186C1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#0F366A
Tritanopia (blue-blind)
#4F2B41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52186c;
/* rgb */ color: rgb(82, 24, 108);
/* oklch */ color: oklch(34.6% 0.141 312.9);
Tailwind
colors: {
  custom: {
    50: '#865b97',
    500: '#52186c',
    950: '#000000',
  },
}
SCSS
$custom: #52186c;
$custom-light: #865b97;
$custom-dark: #000000;
JSON
{
  "hex": "#52186c",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 281.429,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34611,
    "c": 0.14113,
    "h": 312.9
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#52186C
secondary
#5DA23E
accent
#E74174
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52186C

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

Preview Lab → · Contrast checker → · Palette generator →

#52186C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva