#521752#521752

#521752 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.6% C 0.117 H 327.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#521752
RGBrgb(82, 23, 82)
HSLhsl(300, 56%, 21%)
HSVhsv(300, 72%, 32%)
CMYKcmyk(0%, 72%, 0%, 67.8%)
CIE-LABlab(20.11, 35.49, -22.49)
CIE-LCHlch(20.11, 42.01, 327.64°)
OKLaboklab(32.65% 0.0989 -0.0622)
OKLCHoklch(32.65% 0.117 327.8)
XYZxyz(5.3090, 3.0162, 8.2836)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521752 #175217
analogous
#341752 #521752 #521734
triadic
#521752 #525217 #175252
tetradic
#521752 #523417 #175217 #173452
square
#521752 #523417 #175217 #173452
split-complementary
#521752 #345217 #175234
monochromatic
#180718 #220A22 #521752 #822482 #B232B2

Accessibility & contrast

On white

13.10
#521752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#521752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521752
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521752#FFFFFF#000000##FFFFFF
##5217521.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2C54
Deuteranopia (green-blind)
#263350
Tritanopia (blue-blind)
#551F32
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521752;
/* rgb */ color: rgb(82, 23, 82);
/* oklch */ color: oklch(32.6% 0.117 327.8);
Tailwind
colors: {
  custom: {
    50: '#855a83',
    500: '#521752',
    950: '#000000',
  },
}
SCSS
$custom: #521752;
$custom-light: #855a83;
$custom-dark: #000000;
JSON
{
  "hex": "#521752",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 300,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32649,
    "c": 0.11684,
    "h": 327.8
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#521752
secondary
#3C893C
accent
#DF4848
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #521752

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

Preview Lab → · Contrast checker → · Palette generator →

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