#52115B#52115B

#52115B is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.6% C 0.133 H 322.5°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#52115B
RGBrgb(82, 17, 91)
HSLhsl(293, 69%, 21%)
HSVhsv(293, 81%, 36%)
CMYKcmyk(9.9%, 81.3%, 0%, 64.3%)
CIE-LABlab(19.84, 39.69, -28.95)
CIE-LCHlch(19.84, 49.13, 323.90°)
OKLaboklab(32.65% 0.1054 -0.0809)
OKLCHoklch(32.65% 0.133 322.5)
XYZxyz(5.5683, 2.9504, 10.1717)
Luminance0.0295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52115B #1A5B11
analogous
#2D115B #52115B #5B113F
triadic
#52115B #5B5211 #115B52
tetradic
#52115B #5B2D11 #1A5B11 #113F5B
square
#52115B #5B2D11 #1A5B11 #113F5B
split-complementary
#52115B #3F5B11 #115B2D
monochromatic
#17051A #240727 #52115B #801B8F #AF24C2

Accessibility & contrast

On white

13.21
#52115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#52115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52115B
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52115B#FFFFFF#000000##FFFFFF
##52115B1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#1D3259
Tritanopia (blue-blind)
#531F35
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #52115b;
/* rgb */ color: rgb(82, 17, 91);
/* oklch */ color: oklch(32.6% 0.133 322.5);
Tailwind
colors: {
  custom: {
    50: '#86588a',
    500: '#52115b',
    950: '#000000',
  },
}
SCSS
$custom: #52115b;
$custom-light: #86588a;
$custom-dark: #000000;
JSON
{
  "hex": "#52115b",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 292.703,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32649,
    "c": 0.13291,
    "h": 322.5
  },
  "luminance": 0.0295
}

Semantic roles & 50–950 ramp

primary
#52115B
secondary
#409434
accent
#EB3C52
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52115B

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

Preview Lab → · Contrast checker → · Palette generator →

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