#52186A#52186A

#52186A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.139 H 313.9°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#52186A
RGBrgb(82, 24, 106)
HSLhsl(282, 63%, 25%)
HSVhsv(282, 77%, 42%)
CMYKcmyk(22.6%, 77.4%, 0%, 58.4%)
CIE-LABlab(21.90, 40.13, -35.52)
CIE-LCHlch(21.90, 53.59, 318.48°)
OKLaboklab(34.46% 0.0964 -0.1003)
OKLCHoklch(34.46% 0.139 313.9)
XYZxyz(6.4074, 3.4879, 13.9686)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52186A #306A18
analogous
#29186A #52186A #6A1859
triadic
#52186A #6A5218 #186A52
tetradic
#52186A #6A2918 #306A18 #18596A
square
#52186A #6A2918 #306A18 #18596A
split-complementary
#52186A #596A18 #186A29
monochromatic
#130619 #2B0D38 #52186A #79239C #9F2FCE

Accessibility & contrast

On white

12.37
#52186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#52186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52186A
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52186A#FFFFFF#000000##FFFFFF
##52186A1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#123668
Tritanopia (blue-blind)
#502A40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52186a;
/* rgb */ color: rgb(82, 24, 106);
/* oklch */ color: oklch(34.5% 0.139 313.9);
Tailwind
colors: {
  custom: {
    50: '#865b95',
    500: '#52186a',
    950: '#000000',
  },
}
SCSS
$custom: #52186a;
$custom-light: #865b95;
$custom-dark: #000000;
JSON
{
  "hex": "#52186a",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 282.439,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34456,
    "c": 0.13909,
    "h": 313.9
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#52186A
secondary
#5BA03E
accent
#E64272
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52186A

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

Preview Lab → · Contrast checker → · Palette generator →

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