#52116F#52116F

#52116F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.2% C 0.152 H 312.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#52116F
RGBrgb(82, 17, 111)
HSLhsl(281, 73%, 25%)
HSVhsv(281, 85%, 44%)
CMYKcmyk(26.1%, 84.7%, 0%, 56.5%)
CIE-LABlab(21.37, 43.92, -39.63)
CIE-LCHlch(21.37, 59.16, 317.93°)
OKLaboklab(34.2% 0.102 -0.1123)
OKLCHoklch(34.2% 0.152 312.2)
XYZxyz(6.5488, 3.3426, 15.3361)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52116F #2E6F11
analogous
#23116F #52116F #6F115D
triadic
#52116F #6F5211 #116F52
tetradic
#52116F #6F2311 #2E6F11 #115D6F
square
#52116F #6F2311 #2E6F11 #115D6F
split-complementary
#52116F #5D6F11 #116F23
monochromatic
#14041B #2B093A #52116F #7919A4 #A021D9

Accessibility & contrast

On white

12.59
#52116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#52116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52116F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52116F#FFFFFF#000000##FFFFFF
##52116F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#4E2941
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52116f;
/* rgb */ color: rgb(82, 17, 111);
/* oklch */ color: oklch(34.2% 0.152 312.2);
Tailwind
colors: {
  custom: {
    50: '#875999',
    500: '#52116f',
    950: '#000000',
  },
}
SCSS
$custom: #52116f;
$custom-light: #875999;
$custom-dark: #000000;
JSON
{
  "hex": "#52116f",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 281.489,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34204,
    "c": 0.15167,
    "h": 312.2
  },
  "luminance": 0.03342
}

Semantic roles & 50–950 ramp

primary
#52116F
secondary
#58A635
accent
#F03871
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52116F

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

Preview Lab → · Contrast checker → · Palette generator →

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