#52115F#52115F

#52115F is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.137 H 320.2°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#52115F
RGBrgb(82, 17, 95)
HSLhsl(290, 70%, 22%)
HSVhsv(290, 82%, 37%)
CMYKcmyk(13.7%, 82.1%, 0%, 62.7%)
CIE-LABlab(20.13, 40.50, -31.15)
CIE-LCHlch(20.13, 51.10, 322.43°)
OKLaboklab(32.94% 0.105 -0.0874)
OKLCHoklch(32.94% 0.137 320.2)
XYZxyz(5.7454, 3.0213, 11.1048)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52115F #1E5F11
analogous
#2B115F #52115F #5F1145
triadic
#52115F #5F5211 #115F52
tetradic
#52115F #5F2B11 #1E5F11 #11455F
square
#52115F #5F2B11 #1E5F11 #11455F
split-complementary
#52115F #455F11 #115F2B
monochromatic
#16051A #25082B #52115F #7F1A93 #AC24C7

Accessibility & contrast

On white

13.09
#52115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52115F
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52115F#FFFFFF#000000##FFFFFF
##52115F1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#19335D
Tritanopia (blue-blind)
#522138
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52115f;
/* rgb */ color: rgb(82, 17, 95);
/* oklch */ color: oklch(32.9% 0.137 320.2);
Tailwind
colors: {
  custom: {
    50: '#86588d',
    500: '#52115f',
    950: '#000000',
  },
}
SCSS
$custom: #52115f;
$custom-light: #86588d;
$custom-dark: #000000;
JSON
{
  "hex": "#52115f",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 290,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32942,
    "c": 0.1366,
    "h": 320.2
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

primary
#52115F
secondary
#459834
accent
#EC3B59
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52115F

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

Preview Lab → · Contrast checker → · Palette generator →

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