#52186F#52186F

#52186F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.144 H 311.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#52186F
RGBrgb(82, 24, 111)
HSLhsl(280, 64%, 26%)
HSVhsv(280, 78%, 44%)
CMYKcmyk(26.1%, 78.4%, 0%, 56.5%)
CIE-LABlab(22.28, 41.27, -38.15)
CIE-LCHlch(22.28, 56.20, 317.25°)
OKLaboklab(34.85% 0.0956 -0.108)
OKLCHoklch(34.85% 0.144 311.5)
XYZxyz(6.6750, 3.5950, 15.3781)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52186F #356F18
analogous
#27186F #52186F #6F1861
triadic
#52186F #6F5218 #186F52
tetradic
#52186F #6F2718 #356F18 #18616F
square
#52186F #6F2718 #356F18 #18616F
split-complementary
#52186F #616F18 #186F27
monochromatic
#130519 #2D0D3D #52186F #7723A1 #9C2FD2

Accessibility & contrast

On white

12.22
#52186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#52186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52186F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52186F#FFFFFF#000000##FFFFFF
##52186F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#09366D
Tritanopia (blue-blind)
#4E2C42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52186f;
/* rgb */ color: rgb(82, 24, 111);
/* oklch */ color: oklch(34.8% 0.144 311.5);
Tailwind
colors: {
  custom: {
    50: '#865c99',
    500: '#52186f',
    950: '#000000',
  },
}
SCSS
$custom: #52186f;
$custom-light: #865c99;
$custom-dark: #000000;
JSON
{
  "hex": "#52186f",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 280,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34849,
    "c": 0.14419,
    "h": 311.5
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#52186F
secondary
#60A53E
accent
#E74078
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52186F

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

Preview Lab → · Contrast checker → · Palette generator →

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