#521254#521254

#521254 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.125 H 326.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#521254
RGBrgb(82, 18, 84)
HSLhsl(298, 65%, 20%)
HSVhsv(298, 79%, 33%)
CMYKcmyk(2.4%, 78.6%, 0%, 67.1%)
CIE-LABlab(19.50, 37.95, -24.80)
CIE-LCHlch(19.50, 45.33, 326.83°)
OKLaboklab(32.25% 0.1048 -0.0688)
OKLCHoklch(32.25% 0.125 326.7)
XYZxyz(5.2961, 2.8669, 8.6602)
Luminance0.0287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521254 #145412
analogous
#311254 #521254 #541235
triadic
#521254 #545212 #125452
tetradic
#521254 #543112 #145412 #123554
square
#521254 #543112 #145412 #123554
split-complementary
#521254 #355412 #125431
monochromatic
#190519 #210722 #521254 #831D86 #B428B9

Accessibility & contrast

On white

13.35
#521254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521254
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521254#FFFFFF#000000##FFFFFF
##5212541.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032A56
Deuteranopia (green-blind)
#223252
Tritanopia (blue-blind)
#541D32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521254;
/* rgb */ color: rgb(82, 18, 84);
/* oklch */ color: oklch(32.3% 0.125 326.7);
Tailwind
colors: {
  custom: {
    50: '#855884',
    500: '#521254',
    950: '#000000',
  },
}
SCSS
$custom: #521254;
$custom-light: #855884;
$custom-dark: #000000;
JSON
{
  "hex": "#521254",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 298.182,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.32254,
    "c": 0.12538,
    "h": 326.7
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#521254
secondary
#388D35
accent
#E84045
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521254

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

Preview Lab → · Contrast checker → · Palette generator →

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