#52166F#52166F

#52166F is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.146 H 311.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#52166F
RGBrgb(82, 22, 111)
HSLhsl(280, 67%, 26%)
HSVhsv(280, 80%, 44%)
CMYKcmyk(26.1%, 80.2%, 0%, 56.5%)
CIE-LABlab(22.00, 42.08, -38.61)
CIE-LCHlch(22.00, 57.11, 317.47°)
OKLaboklab(34.65% 0.0975 -0.1093)
OKLCHoklch(34.65% 0.147 311.7)
XYZxyz(6.6353, 3.5155, 15.3649)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52166F #336F16
analogous
#25166F #52166F #6F165F
triadic
#52166F #6F5216 #166F52
tetradic
#52166F #6F2516 #336F16 #165F6F
square
#52166F #6F2516 #336F16 #165F6F
split-complementary
#52166F #5F6F16 #166F25
monochromatic
#13051A #2C0C3C #52166F #7820A2 #9D2BD5

Accessibility & contrast

On white

12.33
#52166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#52166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52166F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52166F#FFFFFF#000000##FFFFFF
##52166F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#05366D
Tritanopia (blue-blind)
#4E2B42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52166f;
/* rgb */ color: rgb(82, 22, 111);
/* oklch */ color: oklch(34.6% 0.146 311.7);
Tailwind
colors: {
  custom: {
    50: '#865b99',
    500: '#52166f',
    950: '#000000',
  },
}
SCSS
$custom: #52166f;
$custom-light: #865b99;
$custom-dark: #000000;
JSON
{
  "hex": "#52166f",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 280.449,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34648,
    "c": 0.1465,
    "h": 311.7
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#52166F
secondary
#5EA53C
accent
#EA3E76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52166F

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

Preview Lab → · Contrast checker → · Palette generator →

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