#52104E#52104E

#52104E is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.123 H 330.7°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#52104E
RGBrgb(82, 16, 78)
HSLhsl(304, 67%, 19%)
HSVhsv(304, 80%, 32%)
CMYKcmyk(0%, 80.5%, 4.9%, 67.8%)
CIE-LABlab(18.86, 37.57, -21.75)
CIE-LCHlch(18.86, 43.41, 329.94°)
OKLaboklab(31.67% 0.1069 -0.06)
OKLCHoklch(31.67% 0.123 330.7)
XYZxyz(5.0401, 2.7149, 7.4648)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52104E #105214
analogous
#351052 #52104E #52102D
triadic
#52104E #4E5210 #104E52
tetradic
#52104E #523510 #105214 #102D52
square
#52104E #523510 #105214 #102D52
split-complementary
#52104E #2D5210 #105235
monochromatic
#1A0518 #1F061D #52104E #851A7F #B824AF

Accessibility & contrast

On white

13.61
#52104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52104E
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52104E#FFFFFF#000000##FFFFFF
##52104E1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092850
Deuteranopia (green-blind)
#25314C
Tritanopia (blue-blind)
#55192E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #52104e;
/* rgb */ color: rgb(82, 16, 78);
/* oklch */ color: oklch(31.7% 0.123 330.7);
Tailwind
colors: {
  custom: {
    50: '#855680',
    500: '#52104e',
    950: '#000000',
  },
}
SCSS
$custom: #52104e;
$custom-light: #855680;
$custom-dark: #000000;
JSON
{
  "hex": "#52104e",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 303.636,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31675,
    "c": 0.12255,
    "h": 330.7
  },
  "luminance": 0.02714
}

Semantic roles & 50–950 ramp

primary
#52104E
secondary
#328C38
accent
#EA483E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #52104E

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

Preview Lab → · Contrast checker → · Palette generator →

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