#521252#521252

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

Color values

HEX#521252
RGBrgb(82, 18, 82)
HSLhsl(300, 64%, 20%)
HSVhsv(300, 78%, 32%)
CMYKcmyk(0%, 78%, 0%, 67.8%)
CIE-LABlab(19.37, 37.56, -23.65)
CIE-LCHlch(19.37, 44.39, 327.80°)
OKLaboklab(32.12% 0.1048 -0.0655)
OKLCHoklch(32.12% 0.124 328)
XYZxyz(5.2189, 2.8360, 8.2535)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521252 #125212
analogous
#321252 #521252 #521232
triadic
#521252 #525212 #125252
tetradic
#521252 #523212 #125212 #123252
square
#521252 #523212 #125212 #123252
split-complementary
#521252 #325212 #125232
monochromatic
#190619 #200720 #521252 #841D84 #B628B6

Accessibility & contrast

On white

13.40
#521252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#521252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521252
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521252#FFFFFF#000000##FFFFFF
##5212521.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062A54
Deuteranopia (green-blind)
#233250
Tritanopia (blue-blind)
#551C31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521252;
/* rgb */ color: rgb(82, 18, 82);
/* oklch */ color: oklch(32.1% 0.124 328.0);
Tailwind
colors: {
  custom: {
    50: '#855883',
    500: '#521252',
    950: '#000000',
  },
}
SCSS
$custom: #521252;
$custom-light: #855883;
$custom-dark: #000000;
JSON
{
  "hex": "#521252",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 300,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.32122,
    "c": 0.12358,
    "h": 328
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#521252
secondary
#358B35
accent
#E74141
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #521252

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

Preview Lab → · Contrast checker → · Palette generator →

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