#52135A#52135A

#52135A is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.130 H 323.0°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#52135A
RGBrgb(82, 19, 90)
HSLhsl(293, 65%, 21%)
HSVhsv(293, 79%, 35%)
CMYKcmyk(8.9%, 78.9%, 0%, 64.7%)
CIE-LABlab(20.04, 38.74, -27.97)
CIE-LCHlch(20.04, 47.78, 324.17°)
OKLaboklab(32.76% 0.1035 -0.0781)
OKLCHoklch(32.76% 0.13 323)
XYZxyz(5.5578, 2.9981, 9.9568)
Luminance0.0300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52135A #1B5A13
analogous
#2F135A #52135A #5A133F
triadic
#52135A #5A5213 #135A52
tetradic
#52135A #5A2F13 #1B5A13 #133F5A
square
#52135A #5A2F13 #1B5A13 #133F5A
split-complementary
#52135A #3F5A13 #135A2F
monochromatic
#170519 #240827 #52135A #801E8D #AE28BF

Accessibility & contrast

On white

13.13
#52135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#52135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52135A
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52135A#FFFFFF#000000##FFFFFF
##52135A1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#1E3358
Tritanopia (blue-blind)
#532035
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #52135a;
/* rgb */ color: rgb(82, 19, 90);
/* oklch */ color: oklch(32.8% 0.130 323.0);
Tailwind
colors: {
  custom: {
    50: '#855889',
    500: '#52135a',
    950: '#000000',
  },
}
SCSS
$custom: #52135a;
$custom-light: #855889;
$custom-dark: #000000;
JSON
{
  "hex": "#52135a",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 293.239,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32763,
    "c": 0.12964,
    "h": 323
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#52135A
secondary
#419237
accent
#E84053
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52135A

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

Preview Lab → · Contrast checker → · Palette generator →

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