#52115D#52115D

#52115D is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.135 H 321.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#52115D
RGBrgb(82, 17, 93)
HSLhsl(291, 69%, 22%)
HSVhsv(291, 82%, 36%)
CMYKcmyk(11.8%, 81.7%, 0%, 63.5%)
CIE-LABlab(19.99, 40.09, -30.05)
CIE-LCHlch(19.99, 50.11, 323.14°)
OKLaboklab(32.79% 0.1052 -0.0842)
OKLCHoklch(32.79% 0.135 321.3)
XYZxyz(5.6557, 2.9854, 10.6321)
Luminance0.0299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52115D #1C5D11
analogous
#2C115D #52115D #5D1142
triadic
#52115D #5D5211 #115D52
tetradic
#52115D #5D2C11 #1C5D11 #11425D
square
#52115D #5D2C11 #1C5D11 #11425D
split-complementary
#52115D #425D11 #115D2C
monochromatic
#17051A #240829 #52115D #801A91 #AD24C4

Accessibility & contrast

On white

13.15
#52115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#52115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52115D
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52115D#FFFFFF#000000##FFFFFF
##52115D1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#1B335B
Tritanopia (blue-blind)
#532036
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #52115d;
/* rgb */ color: rgb(82, 17, 93);
/* oklch */ color: oklch(32.8% 0.135 321.3);
Tailwind
colors: {
  custom: {
    50: '#86588b',
    500: '#52115d',
    950: '#000000',
  },
}
SCSS
$custom: #52115d;
$custom-light: #86588b;
$custom-dark: #000000;
JSON
{
  "hex": "#52115d",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 291.316,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32794,
    "c": 0.13475,
    "h": 321.3
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#52115D
secondary
#429634
accent
#EC3C55
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52115D

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

Preview Lab → · Contrast checker → · Palette generator →

#52115D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva