#52104B#52104B

#52104B is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.120 H 332.8°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#52104B
RGBrgb(82, 16, 75)
HSLhsl(306, 67%, 19%)
HSVhsv(306, 80%, 32%)
CMYKcmyk(0%, 80.5%, 8.5%, 67.8%)
CIE-LABlab(18.68, 37.04, -19.98)
CIE-LCHlch(18.68, 42.08, 331.65°)
OKLaboklab(31.49% 0.1067 -0.0549)
OKLCHoklch(31.49% 0.12 332.8)
XYZxyz(4.9350, 2.6728, 6.9112)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52104B #105217
analogous
#381052 #52104B #52102A
triadic
#52104B #4B5210 #104B52
tetradic
#52104B #523810 #105217 #102A52
square
#52104B #523810 #105217 #102A52
split-complementary
#52104B #2A5210 #105238
monochromatic
#1A0517 #1F061C #52104B #851A7A #B824A9

Accessibility & contrast

On white

13.69
#52104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52104B
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52104B#FFFFFF#000000##FFFFFF
##52104B1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52104b;
/* rgb */ color: rgb(82, 16, 75);
/* oklch */ color: oklch(31.5% 0.120 332.8);
Tailwind
colors: {
  custom: {
    50: '#85567d',
    500: '#52104b',
    950: '#000000',
  },
}
SCSS
$custom: #52104b;
$custom-light: #85567d;
$custom-dark: #000000;
JSON
{
  "hex": "#52104b",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 306.364,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31486,
    "c": 0.12002,
    "h": 332.8
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#52104B
secondary
#328C3C
accent
#EA503E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #52104B

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

Preview Lab → · Contrast checker → · Palette generator →

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