#52116E#52116E

#52116E is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.151 H 312.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#52116E
RGBrgb(82, 17, 110)
HSLhsl(282, 73%, 25%)
HSVhsv(282, 85%, 43%)
CMYKcmyk(25.5%, 84.5%, 0%, 56.9%)
CIE-LABlab(21.29, 43.70, -39.12)
CIE-LCHlch(21.29, 58.65, 318.16°)
OKLaboklab(34.12% 0.1022 -0.1108)
OKLCHoklch(34.12% 0.151 312.7)
XYZxyz(6.4941, 3.3207, 15.0477)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52116E #2D6E11
analogous
#23116E #52116E #6E115C
triadic
#52116E #6E5211 #116E52
tetradic
#52116E #6E2311 #2D6E11 #115C6E
square
#52116E #6E2311 #2D6E11 #115C6E
split-complementary
#52116E #5C6E11 #116E23
monochromatic
#14041B #2A0939 #52116E #7A19A3 #A121D8

Accessibility & contrast

On white

12.62
#52116E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52116E
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52116E#FFFFFF#000000##FFFFFF
##52116E1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#01346C
Tritanopia (blue-blind)
#4F2840
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52116e;
/* rgb */ color: rgb(82, 17, 110);
/* oklch */ color: oklch(34.1% 0.151 312.7);
Tailwind
colors: {
  custom: {
    50: '#875998',
    500: '#52116e',
    950: '#000000',
  },
}
SCSS
$custom: #52116e;
$custom-light: #875998;
$custom-dark: #000000;
JSON
{
  "hex": "#52116e",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 110
  },
  "hsl": {
    "h": 281.935,
    "s": 73.228,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34121,
    "c": 0.15072,
    "h": 312.7
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#52116E
secondary
#57A535
accent
#F0386F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52116E

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

Preview Lab → · Contrast checker → · Palette generator →

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