#52104C#52104C

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

Color values

HEX#52104C
RGBrgb(82, 16, 76)
HSLhsl(305, 67%, 19%)
HSVhsv(305, 80%, 32%)
CMYKcmyk(0%, 80.5%, 7.3%, 67.8%)
CIE-LABlab(18.74, 37.21, -20.57)
CIE-LCHlch(18.74, 42.52, 331.07°)
OKLaboklab(31.55% 0.1068 -0.0566)
OKLCHoklch(31.55% 0.121 332.1)
XYZxyz(4.9695, 2.6866, 7.0929)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52104C #105216
analogous
#371052 #52104C #52102B
triadic
#52104C #4C5210 #104C52
tetradic
#52104C #523710 #105216 #102B52
square
#52104C #523710 #105216 #102B52
split-complementary
#52104C #2B5210 #105237
monochromatic
#1A0518 #1F061D #52104C #851A7B #B824AB

Accessibility & contrast

On white

13.66
#52104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#52104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52104C
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52104C#FFFFFF#000000##FFFFFF
##52104C1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B284E
Deuteranopia (green-blind)
#26314A
Tritanopia (blue-blind)
#56182D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #52104c;
/* rgb */ color: rgb(82, 16, 76);
/* oklch */ color: oklch(31.5% 0.121 332.1);
Tailwind
colors: {
  custom: {
    50: '#85567e',
    500: '#52104c',
    950: '#000000',
  },
}
SCSS
$custom: #52104c;
$custom-light: #85567e;
$custom-dark: #000000;
JSON
{
  "hex": "#52104c",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 305.455,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31549,
    "c": 0.12085,
    "h": 332.1
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#52104C
secondary
#328C3A
accent
#EA4D3E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #52104C

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

Preview Lab → · Contrast checker → · Palette generator →

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