#52116A#52116A

#52116A is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.8% C 0.147 H 314.6°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#52116A
RGBrgb(82, 17, 106)
HSLhsl(284, 72%, 24%)
HSVhsv(284, 84%, 42%)
CMYKcmyk(22.6%, 84%, 0%, 58.4%)
CIE-LABlab(20.96, 42.82, -37.04)
CIE-LCHlch(20.96, 56.62, 319.14°)
OKLaboklab(33.79% 0.1031 -0.1047)
OKLCHoklch(33.79% 0.147 314.6)
XYZxyz(6.2812, 3.2356, 13.9265)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52116A #296A11
analogous
#26116A #52116A #6A1156
triadic
#52116A #6A5211 #116A52
tetradic
#52116A #6A2611 #296A11 #11566A
square
#52116A #6A2611 #296A11 #11566A
split-complementary
#52116A #566A11 #116A26
monochromatic
#14041A #290935 #52116A #7B199F #A422D3

Accessibility & contrast

On white

12.75
#52116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#52116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52116A
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52116A#FFFFFF#000000##FFFFFF
##52116A1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#0A3468
Tritanopia (blue-blind)
#50273E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52116a;
/* rgb */ color: rgb(82, 17, 106);
/* oklch */ color: oklch(33.8% 0.147 314.6);
Tailwind
colors: {
  custom: {
    50: '#865895',
    500: '#52116a',
    950: '#000000',
  },
}
SCSS
$custom: #52116a;
$custom-light: #865895;
$custom-dark: #000000;
JSON
{
  "hex": "#52116a",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 283.82,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33794,
    "c": 0.14693,
    "h": 314.6
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#52116A
secondary
#52A235
accent
#EF396A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52116A

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

Preview Lab → · Contrast checker → · Palette generator →

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