#52165F#52165F

#52165F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.131 H 319.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#52165F
RGBrgb(82, 22, 95)
HSLhsl(289, 62%, 23%)
HSVhsv(289, 77%, 37%)
CMYKcmyk(13.7%, 76.8%, 0%, 62.7%)
CIE-LABlab(20.81, 38.57, -30.07)
CIE-LCHlch(20.81, 48.90, 322.06°)
OKLaboklab(33.42% 0.0999 -0.0842)
OKLCHoklch(33.42% 0.131 319.8)
XYZxyz(5.8319, 3.1942, 11.1336)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52165F #235F16
analogous
#2D165F #52165F #5F1647
triadic
#52165F #5F5216 #165F52
tetradic
#52165F #5F2D16 #235F16 #16475F
square
#52165F #5F2D16 #235F16 #16475F
split-complementary
#52165F #475F16 #165F2D
monochromatic
#150619 #270A2D #52165F #7D2291 #A82DC2

Accessibility & contrast

On white

12.81
#52165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#52165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52165F
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52165F#FFFFFF#000000##FFFFFF
##52165F1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#1C345D
Tritanopia (blue-blind)
#522439
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52165f;
/* rgb */ color: rgb(82, 22, 95);
/* oklch */ color: oklch(33.4% 0.131 319.8);
Tailwind
colors: {
  custom: {
    50: '#855a8d',
    500: '#52165f',
    950: '#000000',
  },
}
SCSS
$custom: #52165f;
$custom-light: #855a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#52165f",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 289.315,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33422,
    "c": 0.13065,
    "h": 319.8
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#52165F
secondary
#4B963B
accent
#E5425F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52165F

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

Preview Lab → · Contrast checker → · Palette generator →

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