#521152#521152

#521152 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.125 H 328.0°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#521152
RGBrgb(82, 17, 82)
HSLhsl(300, 66%, 19%)
HSVhsv(300, 79%, 32%)
CMYKcmyk(0%, 79.3%, 0%, 67.8%)
CIE-LABlab(19.24, 37.94, -23.86)
CIE-LCHlch(19.24, 44.82, 327.83°)
OKLaboklab(32.03% 0.1059 -0.0661)
OKLCHoklch(32.03% 0.125 328)
XYZxyz(5.2030, 2.8043, 8.2482)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521152 #115211
analogous
#321152 #521152 #521132
triadic
#521152 #525211 #115252
tetradic
#521152 #523211 #115211 #113252
square
#521152 #523211 #115211 #113252
split-complementary
#521152 #325211 #115232
monochromatic
#190519 #1F061F #521152 #851C85 #B726B7

Accessibility & contrast

On white

13.45
#521152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#521152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521152
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521152#FFFFFF#000000##FFFFFF
##5211521.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052954
Deuteranopia (green-blind)
#233250
Tritanopia (blue-blind)
#551B30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521152;
/* rgb */ color: rgb(82, 17, 82);
/* oklch */ color: oklch(32.0% 0.125 328.0);
Tailwind
colors: {
  custom: {
    50: '#855783',
    500: '#521152',
    950: '#000000',
  },
}
SCSS
$custom: #521152;
$custom-light: #855783;
$custom-dark: #000000;
JSON
{
  "hex": "#521152",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 300,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.32027,
    "c": 0.12481,
    "h": 328
  },
  "luminance": 0.02804
}

Semantic roles & 50–950 ramp

primary
#521152
secondary
#348B34
accent
#E93F3F
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #521152

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

Preview Lab → · Contrast checker → · Palette generator →

#521152 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva