#52104D#52104D

#52104D is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.122 H 331.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#52104D
RGBrgb(82, 16, 77)
HSLhsl(305, 67%, 19%)
HSVhsv(305, 80%, 32%)
CMYKcmyk(0%, 80.5%, 6.1%, 67.8%)
CIE-LABlab(18.80, 37.39, -21.16)
CIE-LCHlch(18.80, 42.96, 330.49°)
OKLaboklab(31.61% 0.1068 -0.0583)
OKLCHoklch(31.61% 0.122 331.4)
XYZxyz(5.0045, 2.7006, 7.2774)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52104D #105215
analogous
#361052 #52104D #52102C
triadic
#52104D #4D5210 #104D52
tetradic
#52104D #523610 #105215 #102C52
square
#52104D #523610 #105215 #102C52
split-complementary
#52104D #2C5210 #105236
monochromatic
#1A0518 #1F061D #52104D #851A7D #B824AD

Accessibility & contrast

On white

13.64
#52104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52104D
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52104D#FFFFFF#000000##FFFFFF
##52104D1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A284F
Deuteranopia (green-blind)
#25314B
Tritanopia (blue-blind)
#56182D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #52104d;
/* rgb */ color: rgb(82, 16, 77);
/* oklch */ color: oklch(31.6% 0.122 331.4);
Tailwind
colors: {
  custom: {
    50: '#85567f',
    500: '#52104d',
    950: '#000000',
  },
}
SCSS
$custom: #52104d;
$custom-light: #85567f;
$custom-dark: #000000;
JSON
{
  "hex": "#52104d",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 304.545,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31611,
    "c": 0.1217,
    "h": 331.4
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#52104D
secondary
#328C39
accent
#EA4B3E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #52104D

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

Preview Lab → · Contrast checker → · Palette generator →

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