#52164F#52164F

#52164F is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.3% C 0.116 H 330.0°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#52164F
RGBrgb(82, 22, 79)
HSLhsl(303, 58%, 20%)
HSVhsv(303, 73%, 32%)
CMYKcmyk(0%, 73.2%, 3.7%, 67.8%)
CIE-LABlab(19.77, 35.35, -20.99)
CIE-LCHlch(19.77, 41.12, 329.30°)
OKLaboklab(32.35% 0.1 -0.0578)
OKLCHoklch(32.35% 0.116 330)
XYZxyz(5.1778, 2.9326, 7.6889)
Luminance0.0293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52164F #165219
analogous
#371652 #52164F #521631
triadic
#52164F #4F5216 #164F52
tetradic
#52164F #523716 #165219 #163152
square
#52164F #523716 #165219 #163152
split-complementary
#52164F #315216 #165237
monochromatic
#180617 #220921 #52164F #82237D #B330AC

Accessibility & contrast

On white

13.24
#52164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#52164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52164F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52164F#FFFFFF#000000##FFFFFF
##52164F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102B51
Deuteranopia (green-blind)
#27334D
Tritanopia (blue-blind)
#551D30
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #52164f;
/* rgb */ color: rgb(82, 22, 79);
/* oklch */ color: oklch(32.3% 0.116 330.0);
Tailwind
colors: {
  custom: {
    50: '#855980',
    500: '#52164f',
    950: '#000000',
  },
}
SCSS
$custom: #52164f;
$custom-light: #855980;
$custom-dark: #000000;
JSON
{
  "hex": "#52164f",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 303,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32348,
    "c": 0.11553,
    "h": 330
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#52164F
secondary
#3A893E
accent
#E14F47
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #52164F

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

Preview Lab → · Contrast checker → · Palette generator →

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