#52165A#52165A

#52165A is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.126 H 322.8°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#52165A
RGBrgb(82, 22, 90)
HSLhsl(293, 61%, 22%)
HSVhsv(293, 76%, 35%)
CMYKcmyk(8.9%, 75.6%, 0%, 64.7%)
CIE-LABlab(20.46, 37.52, -27.29)
CIE-LCHlch(20.46, 46.40, 323.97°)
OKLaboklab(33.07% 0.1002 -0.0761)
OKLCHoklch(33.07% 0.126 322.8)
XYZxyz(5.6119, 3.1062, 9.9748)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52165A #1E5A16
analogous
#30165A #52165A #5A1640
triadic
#52165A #5A5216 #165A52
tetradic
#52165A #5A3016 #1E5A16 #16405A
square
#52165A #5A3016 #1E5A16 #16405A
split-complementary
#52165A #405A16 #165A30
monochromatic
#160619 #250A29 #52165A #7F228B #AC2EBC

Accessibility & contrast

On white

12.95
#52165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#52165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52165A
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52165A#FFFFFF#000000##FFFFFF
##52165A1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012D5C
Deuteranopia (green-blind)
#203458
Tritanopia (blue-blind)
#532236
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52165a;
/* rgb */ color: rgb(82, 22, 90);
/* oklch */ color: oklch(33.1% 0.126 322.8);
Tailwind
colors: {
  custom: {
    50: '#855a89',
    500: '#52165a',
    950: '#000000',
  },
}
SCSS
$custom: #52165a;
$custom-light: #855a89;
$custom-dark: #000000;
JSON
{
  "hex": "#52165a",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 292.941,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33069,
    "c": 0.12581,
    "h": 322.8
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#52165A
secondary
#45913B
accent
#E44457
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52165A

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

Preview Lab → · Contrast checker → · Palette generator →

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