#52166B#52166B

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

Color values

HEX#52166B
RGBrgb(82, 22, 107)
HSLhsl(282, 66%, 25%)
HSVhsv(282, 79%, 42%)
CMYKcmyk(23.4%, 79.4%, 0%, 58%)
CIE-LABlab(21.69, 41.18, -36.52)
CIE-LCHlch(21.69, 55.04, 318.43°)
OKLaboklab(34.33% 0.0983 -0.1032)
OKLCHoklch(34.33% 0.143 313.6)
XYZxyz(6.4200, 3.4294, 14.2308)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52166B #2F6B16
analogous
#28166B #52166B #6B1659
triadic
#52166B #6B5216 #166B52
tetradic
#52166B #6B2816 #2F6B16 #16596B
square
#52166B #6B2816 #2F6B16 #16596B
split-complementary
#52166B #596B16 #166B28
monochromatic
#130519 #2B0C38 #52166B #79209E #A02BD1

Accessibility & contrast

On white

12.46
#52166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#52166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52166B
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52166B#FFFFFF#000000##FFFFFF
##52166B1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#0E3569
Tritanopia (blue-blind)
#4F2940
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52166b;
/* rgb */ color: rgb(82, 22, 107);
/* oklch */ color: oklch(34.3% 0.142 313.6);
Tailwind
colors: {
  custom: {
    50: '#865b96',
    500: '#52166b',
    950: '#000000',
  },
}
SCSS
$custom: #52166b;
$custom-light: #865b96;
$custom-dark: #000000;
JSON
{
  "hex": "#52166b",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 282.353,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34329,
    "c": 0.1425,
    "h": 313.6
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#52166B
secondary
#59A13B
accent
#E93F71
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52166B

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

Preview Lab → · Contrast checker → · Palette generator →

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