#521858#521858

#521858 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.2% C 0.121 H 323.9°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#521858
RGBrgb(82, 24, 88)
HSLhsl(294, 57%, 22%)
HSVhsv(294, 73%, 35%)
CMYKcmyk(6.8%, 72.7%, 0%, 65.5%)
CIE-LABlab(20.64, 36.24, -25.67)
CIE-LCHlch(20.64, 44.41, 324.69°)
OKLaboklab(33.16% 0.0978 -0.0714)
OKLCHoklch(33.16% 0.121 323.9)
XYZxyz(5.5676, 3.1520, 9.5458)
Luminance0.0315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521858 #1E5818
analogous
#321858 #521858 #58183E
triadic
#521858 #585218 #185852
tetradic
#521858 #583218 #1E5818 #183E58
square
#521858 #583218 #1E5818 #183E58
split-complementary
#521858 #3E5818 #185832
monochromatic
#160718 #250B28 #521858 #7F2588 #AC32B8

Accessibility & contrast

On white

12.88
#521858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#521858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521858
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521858#FFFFFF#000000##FFFFFF
##5218581.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082D5A
Deuteranopia (green-blind)
#233456
Tritanopia (blue-blind)
#542236
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521858;
/* rgb */ color: rgb(82, 24, 88);
/* oklch */ color: oklch(33.2% 0.121 323.9);
Tailwind
colors: {
  custom: {
    50: '#855b87',
    500: '#521858',
    950: '#000000',
  },
}
SCSS
$custom: #521858;
$custom-light: #855b87;
$custom-dark: #000000;
JSON
{
  "hex": "#521858",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 294.375,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33155,
    "c": 0.12112,
    "h": 323.9
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#521858
secondary
#458F3D
accent
#E04756
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521858

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

Preview Lab → · Contrast checker → · Palette generator →

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