#52186B#52186B

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

Color values

HEX#52186B
RGBrgb(82, 24, 107)
HSLhsl(282, 63%, 26%)
HSVhsv(282, 78%, 42%)
CMYKcmyk(23.4%, 77.6%, 0%, 58%)
CIE-LABlab(21.98, 40.36, -36.05)
CIE-LCHlch(21.98, 54.11, 318.22°)
OKLaboklab(34.53% 0.0963 -0.1018)
OKLCHoklch(34.53% 0.14 313.4)
XYZxyz(6.4597, 3.5088, 14.2441)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52186B #316B18
analogous
#28186B #52186B #6B185A
triadic
#52186B #6B5218 #186B52
tetradic
#52186B #6B2818 #316B18 #185A6B
square
#52186B #6B2818 #316B18 #185A6B
split-complementary
#52186B #5A6B18 #186B28
monochromatic
#130619 #2C0D39 #52186B #78239D #9F2ECF

Accessibility & contrast

On white

12.34
#52186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52186B
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52186B#FFFFFF#000000##FFFFFF
##52186B1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#103669
Tritanopia (blue-blind)
#4F2A40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52186b;
/* rgb */ color: rgb(82, 24, 107);
/* oklch */ color: oklch(34.5% 0.140 313.4);
Tailwind
colors: {
  custom: {
    50: '#865b96',
    500: '#52186b',
    950: '#000000',
  },
}
SCSS
$custom: #52186b;
$custom-light: #865b96;
$custom-dark: #000000;
JSON
{
  "hex": "#52186b",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 281.928,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34533,
    "c": 0.14011,
    "h": 313.4
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#52186B
secondary
#5CA13E
accent
#E64173
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52186B

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

Preview Lab → · Contrast checker → · Palette generator →

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