#52166A#52166A

#52166A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.142 H 314.1°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#52166A
RGBrgb(82, 22, 106)
HSLhsl(283, 66%, 25%)
HSVhsv(283, 79%, 42%)
CMYKcmyk(22.6%, 79.2%, 0%, 58.4%)
CIE-LABlab(21.61, 40.96, -35.99)
CIE-LCHlch(21.61, 54.52, 318.69°)
OKLaboklab(34.25% 0.0985 -0.1016)
OKLCHoklch(34.25% 0.142 314.1)
XYZxyz(6.3677, 3.4085, 13.9553)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52166A #2E6A16
analogous
#28166A #52166A #6A1658
triadic
#52166A #6A5216 #166A52
tetradic
#52166A #6A2816 #2E6A16 #16586A
square
#52166A #6A2816 #2E6A16 #16586A
split-complementary
#52166A #586A16 #166A28
monochromatic
#140519 #2B0B37 #52166A #79219D #A02BCF

Accessibility & contrast

On white

12.49
#52166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#52166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52166A
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52166A#FFFFFF#000000##FFFFFF
##52166A1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#103568
Tritanopia (blue-blind)
#50293F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52166a;
/* rgb */ color: rgb(82, 22, 106);
/* oklch */ color: oklch(34.3% 0.142 314.1);
Tailwind
colors: {
  custom: {
    50: '#865a95',
    500: '#52166a',
    950: '#000000',
  },
}
SCSS
$custom: #52166a;
$custom-light: #865a95;
$custom-dark: #000000;
JSON
{
  "hex": "#52166a",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 282.857,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3425,
    "c": 0.14151,
    "h": 314.1
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#52166A
secondary
#58A03B
accent
#E93F70
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52166A

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

Preview Lab → · Contrast checker → · Palette generator →

#52166A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva