#52186D#52186D

#52186D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.142 H 312.4°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#52186D
RGBrgb(82, 24, 109)
HSLhsl(281, 64%, 26%)
HSVhsv(281, 78%, 43%)
CMYKcmyk(24.8%, 78%, 0%, 57.3%)
CIE-LABlab(22.13, 40.81, -37.10)
CIE-LCHlch(22.13, 55.16, 317.72°)
OKLaboklab(34.69% 0.0959 -0.1049)
OKLCHoklch(34.69% 0.142 312.4)
XYZxyz(6.5661, 3.5514, 14.8046)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52186D #336D18
analogous
#27186D #52186D #6D185D
triadic
#52186D #6D5218 #186D52
tetradic
#52186D #6D2718 #336D18 #185D6D
square
#52186D #6D2718 #336D18 #185D6D
split-complementary
#52186D #5D6D18 #186D27
monochromatic
#130619 #2C0D3B #52186D #78239F #9D2ED1

Accessibility & contrast

On white

12.28
#52186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52186D
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52186D#FFFFFF#000000##FFFFFF
##52186D1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52186d;
/* rgb */ color: rgb(82, 24, 109);
/* oklch */ color: oklch(34.7% 0.142 312.4);
Tailwind
colors: {
  custom: {
    50: '#865c97',
    500: '#52186d',
    950: '#000000',
  },
}
SCSS
$custom: #52186d;
$custom-light: #865c97;
$custom-dark: #000000;
JSON
{
  "hex": "#52186d",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 280.941,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3469,
    "c": 0.14215,
    "h": 312.4
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#52186D
secondary
#5EA33E
accent
#E74176
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52186D

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

Preview Lab → · Contrast checker → · Palette generator →

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