#521852#521852

#521852 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.115 H 327.8°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#521852
RGBrgb(82, 24, 82)
HSLhsl(300, 55%, 21%)
HSVhsv(300, 71%, 32%)
CMYKcmyk(0%, 70.7%, 0%, 67.8%)
CIE-LABlab(20.27, 35.04, -22.23)
CIE-LCHlch(20.27, 41.50, 327.60°)
OKLaboklab(32.77% 0.0977 -0.0615)
OKLCHoklch(32.77% 0.115 327.8)
XYZxyz(5.3292, 3.0567, 8.2903)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521852 #185218
analogous
#351852 #521852 #521835
triadic
#521852 #525218 #185252
tetradic
#521852 #523518 #185218 #183552
square
#521852 #523518 #185218 #183552
split-complementary
#521852 #355218 #185235
monochromatic
#180718 #230A23 #521852 #812681 #B134B1

Accessibility & contrast

On white

13.03
#521852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#521852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521852
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521852#FFFFFF#000000##FFFFFF
##5218521.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C54
Deuteranopia (green-blind)
#263450
Tritanopia (blue-blind)
#552032
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521852;
/* rgb */ color: rgb(82, 24, 82);
/* oklch */ color: oklch(32.8% 0.115 327.8);
Tailwind
colors: {
  custom: {
    50: '#855a83',
    500: '#521852',
    950: '#000000',
  },
}
SCSS
$custom: #521852;
$custom-light: #855a83;
$custom-dark: #000000;
JSON
{
  "hex": "#521852",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 300,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32765,
    "c": 0.11538,
    "h": 327.8
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#521852
secondary
#3D893D
accent
#DE4A4A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #521852

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

Preview Lab → · Contrast checker → · Palette generator →

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