#52104A#52104A

#52104A is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.4% C 0.119 H 333.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#52104A
RGBrgb(82, 16, 74)
HSLhsl(307, 67%, 19%)
HSVhsv(307, 80%, 32%)
CMYKcmyk(0%, 80.5%, 9.8%, 67.8%)
CIE-LABlab(18.62, 36.86, -19.39)
CIE-LCHlch(18.62, 41.65, 332.25°)
OKLaboklab(31.42% 0.1067 -0.0532)
OKLCHoklch(31.42% 0.119 333.5)
XYZxyz(4.9010, 2.6593, 6.7324)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52104A #105218
analogous
#391052 #52104A #521029
triadic
#52104A #4A5210 #104A52
tetradic
#52104A #523910 #105218 #102952
square
#52104A #523910 #105218 #102952
split-complementary
#52104A #295210 #105239
monochromatic
#1A0517 #1F061C #52104A #851A78 #B824A6

Accessibility & contrast

On white

13.71
#52104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#52104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52104A
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52104A#FFFFFF#000000##FFFFFF
##52104A1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E274C
Deuteranopia (green-blind)
#273148
Tritanopia (blue-blind)
#56172C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #52104a;
/* rgb */ color: rgb(82, 16, 74);
/* oklch */ color: oklch(31.4% 0.119 333.5);
Tailwind
colors: {
  custom: {
    50: '#85567d',
    500: '#52104a',
    950: '#000000',
  },
}
SCSS
$custom: #52104a;
$custom-light: #85567d;
$custom-dark: #000000;
JSON
{
  "hex": "#52104a",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 307.273,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31425,
    "c": 0.11919,
    "h": 333.5
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#52104A
secondary
#328C3D
accent
#EA523E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #52104A

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

Preview Lab → · Contrast checker → · Palette generator →

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