#521048#521048

#521048 is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.3% C 0.118 H 335.0°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#521048
RGBrgb(82, 16, 72)
HSLhsl(309, 67%, 19%)
HSVhsv(309, 80%, 32%)
CMYKcmyk(0%, 80.5%, 12.2%, 67.8%)
CIE-LABlab(18.51, 36.52, -18.20)
CIE-LCHlch(18.51, 40.80, 333.51°)
OKLaboklab(31.31% 0.1065 -0.0497)
OKLCHoklch(31.31% 0.118 335)
XYZxyz(4.8347, 2.6327, 6.3832)
Luminance0.0263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521048 #10521A
analogous
#3B1052 #521048 #521027
triadic
#521048 #485210 #104852
tetradic
#521048 #523B10 #10521A #102752
square
#521048 #523B10 #10521A #102752
split-complementary
#521048 #275210 #10523B
monochromatic
#1A0516 #1F061B #521048 #851A75 #B824A2

Accessibility & contrast

On white

13.76
#521048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#521048 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521048
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521048#FFFFFF#000000##FFFFFF
##5210481.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10274A
Deuteranopia (green-blind)
#273146
Tritanopia (blue-blind)
#56162B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #521048;
/* rgb */ color: rgb(82, 16, 72);
/* oklch */ color: oklch(31.3% 0.118 335.0);
Tailwind
colors: {
  custom: {
    50: '#85567b',
    500: '#521048',
    950: '#000000',
  },
}
SCSS
$custom: #521048;
$custom-light: #85567b;
$custom-dark: #000000;
JSON
{
  "hex": "#521048",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 309.091,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31305,
    "c": 0.11755,
    "h": 335
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#521048
secondary
#328C40
accent
#EA583E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #521048

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

Preview Lab → · Contrast checker → · Palette generator →

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