#521958#521958

#521958 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.3% C 0.120 H 323.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#521958
RGBrgb(82, 25, 88)
HSLhsl(294, 56%, 22%)
HSVhsv(294, 72%, 35%)
CMYKcmyk(6.8%, 71.6%, 0%, 65.5%)
CIE-LABlab(20.80, 35.79, -25.41)
CIE-LCHlch(20.80, 43.89, 324.62°)
OKLaboklab(33.27% 0.0966 -0.0707)
OKLCHoklch(33.27% 0.12 323.8)
XYZxyz(5.5886, 3.1940, 9.5528)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521958 #1F5819
analogous
#331958 #521958 #58193F
triadic
#521958 #585219 #195852
tetradic
#521958 #583319 #1F5819 #193F58
square
#521958 #583319 #1F5819 #193F58
split-complementary
#521958 #3F5819 #195833
monochromatic
#160718 #260B28 #521958 #7E2788 #AB34B7

Accessibility & contrast

On white

12.81
#521958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#521958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521958
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521958#FFFFFF#000000##FFFFFF
##5219581.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2E5A
Deuteranopia (green-blind)
#233456
Tritanopia (blue-blind)
#542336
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521958;
/* rgb */ color: rgb(82, 25, 88);
/* oklch */ color: oklch(33.3% 0.120 323.8);
Tailwind
colors: {
  custom: {
    50: '#855b87',
    500: '#521958',
    950: '#000000',
  },
}
SCSS
$custom: #521958;
$custom-light: #855b87;
$custom-dark: #000000;
JSON
{
  "hex": "#521958",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 294.286,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33272,
    "c": 0.11967,
    "h": 323.8
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#521958
secondary
#468E3E
accent
#DF4957
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521958

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

Preview Lab → · Contrast checker → · Palette generator →

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