#52115C#52115C

#52115C is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.134 H 321.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#52115C
RGBrgb(82, 17, 92)
HSLhsl(292, 69%, 21%)
HSVhsv(292, 82%, 36%)
CMYKcmyk(10.9%, 81.5%, 0%, 63.9%)
CIE-LABlab(19.91, 39.89, -29.50)
CIE-LCHlch(19.91, 49.62, 323.51°)
OKLaboklab(32.72% 0.1053 -0.0826)
OKLCHoklch(32.72% 0.134 321.9)
XYZxyz(5.6117, 2.9678, 10.4004)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52115C #1B5C11
analogous
#2D115C #52115C #5C1141
triadic
#52115C #5C5211 #115C52
tetradic
#52115C #5C2D11 #1B5C11 #11415C
square
#52115C #5C2D11 #1B5C11 #11415C
split-complementary
#52115C #415C11 #115C2D
monochromatic
#17051A #240728 #52115C #801B90 #AE24C3

Accessibility & contrast

On white

13.18
#52115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52115C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52115C#FFFFFF#000000##FFFFFF
##52115C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52115c;
/* rgb */ color: rgb(82, 17, 92);
/* oklch */ color: oklch(32.7% 0.134 321.9);
Tailwind
colors: {
  custom: {
    50: '#86588a',
    500: '#52115c',
    950: '#000000',
  },
}
SCSS
$custom: #52115c;
$custom-light: #86588a;
$custom-dark: #000000;
JSON
{
  "hex": "#52115c",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 292,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32721,
    "c": 0.13383,
    "h": 321.9
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#52115C
secondary
#419534
accent
#EC3C54
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52115C

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

Preview Lab → · Contrast checker → · Palette generator →

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