#52115A#52115A

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

Color values

HEX#52115A
RGBrgb(82, 17, 90)
HSLhsl(293, 68%, 21%)
HSVhsv(293, 81%, 35%)
CMYKcmyk(8.9%, 81.1%, 0%, 64.7%)
CIE-LABlab(19.77, 39.49, -28.39)
CIE-LCHlch(19.77, 48.64, 324.29°)
OKLaboklab(32.58% 0.1055 -0.0793)
OKLCHoklch(32.58% 0.132 323.1)
XYZxyz(5.5254, 2.9333, 9.9460)
Luminance0.0293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52115A #195A11
analogous
#2D115A #52115A #5A113D
triadic
#52115A #5A5211 #115A52
tetradic
#52115A #5A2D11 #195A11 #113D5A
square
#52115A #5A2D11 #195A11 #113D5A
split-complementary
#52115A #3D5A11 #115A2D
monochromatic
#17051A #230727 #52115A #811B8D #B024C1

Accessibility & contrast

On white

13.24
#52115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52115A
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52115A#FFFFFF#000000##FFFFFF
##52115A1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52115a;
/* rgb */ color: rgb(82, 17, 90);
/* oklch */ color: oklch(32.6% 0.132 323.1);
Tailwind
colors: {
  custom: {
    50: '#855789',
    500: '#52115a',
    950: '#000000',
  },
}
SCSS
$custom: #52115a;
$custom-light: #855789;
$custom-dark: #000000;
JSON
{
  "hex": "#52115a",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 293.425,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32577,
    "c": 0.132,
    "h": 323.1
  },
  "luminance": 0.02933
}

Semantic roles & 50–950 ramp

primary
#52115A
secondary
#3E9334
accent
#EB3D50
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52115A

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

Preview Lab → · Contrast checker → · Palette generator →

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