#52116C#52116C

#52116C is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.149 H 313.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#52116C
RGBrgb(82, 17, 108)
HSLhsl(283, 73%, 25%)
HSVhsv(283, 84%, 42%)
CMYKcmyk(24.1%, 84.3%, 0%, 57.6%)
CIE-LABlab(21.12, 43.26, -38.08)
CIE-LCHlch(21.12, 57.63, 318.64°)
OKLaboklab(33.96% 0.1027 -0.1077)
OKLCHoklch(33.96% 0.149 313.6)
XYZxyz(6.3864, 3.2777, 14.4807)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52116C #2B6C11
analogous
#25116C #52116C #6C1159
triadic
#52116C #6C5211 #116C52
tetradic
#52116C #6C2511 #2B6C11 #11596C
square
#52116C #6C2511 #2B6C11 #11596C
split-complementary
#52116C #596C11 #116C25
monochromatic
#14041A #2A0937 #52116C #7A19A1 #A222D6

Accessibility & contrast

On white

12.69
#52116C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#52116C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52116C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52116C#FFFFFF#000000##FFFFFF
##52116C1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#05346A
Tritanopia (blue-blind)
#4F273F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52116c;
/* rgb */ color: rgb(82, 17, 108);
/* oklch */ color: oklch(34.0% 0.149 313.6);
Tailwind
colors: {
  custom: {
    50: '#865997',
    500: '#52116c',
    950: '#000000',
  },
}
SCSS
$custom: #52116c;
$custom-light: #865997;
$custom-dark: #000000;
JSON
{
  "hex": "#52116c",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 108
  },
  "hsl": {
    "h": 282.857,
    "s": 72.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33957,
    "c": 0.14882,
    "h": 313.6
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#52116C
secondary
#55A435
accent
#EF386D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52116C

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

Preview Lab → · Contrast checker → · Palette generator →

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