#52106D#52106D

#52106D is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.151 H 313.2°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#52106D
RGBrgb(82, 16, 109)
HSLhsl(283, 74%, 25%)
HSVhsv(283, 85%, 43%)
CMYKcmyk(24.8%, 85.3%, 0%, 57.3%)
CIE-LABlab(21.09, 43.81, -38.79)
CIE-LCHlch(21.09, 58.51, 318.48°)
OKLaboklab(33.96% 0.1033 -0.1098)
OKLCHoklch(33.96% 0.151 313.2)
XYZxyz(6.4248, 3.2688, 14.7575)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52106D #2B6D10
analogous
#24106D #52106D #6D105A
triadic
#52106D #6D5210 #106D52
tetradic
#52106D #6D2410 #2B6D10 #105A6D
square
#52106D #6D2410 #2B6D10 #105A6D
split-complementary
#52106D #5A6D10 #106D24
monochromatic
#14041B #2A0838 #52106D #7A18A2 #A220D8

Accessibility & contrast

On white

12.70
#52106D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#52106D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52106D
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52106D#FFFFFF#000000##FFFFFF
##52106D1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#02346B
Tritanopia (blue-blind)
#4F283F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52106d;
/* rgb */ color: rgb(82, 16, 109);
/* oklch */ color: oklch(34.0% 0.151 313.2);
Tailwind
colors: {
  custom: {
    50: '#875897',
    500: '#52106d',
    950: '#000000',
  },
}
SCSS
$custom: #52106d;
$custom-light: #875897;
$custom-dark: #000000;
JSON
{
  "hex": "#52106d",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 109
  },
  "hsl": {
    "h": 282.581,
    "s": 74.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33959,
    "c": 0.15071,
    "h": 313.2
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#52106D
secondary
#55A534
accent
#F1376D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52106D

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

Preview Lab → · Contrast checker → · Palette generator →

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