#522158#522158

#522158 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.3% C 0.107 H 323.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#522158
RGBrgb(82, 33, 88)
HSLhsl(293, 45%, 24%)
HSVhsv(293, 63%, 35%)
CMYKcmyk(6.8%, 62.5%, 0%, 65.5%)
CIE-LABlab(22.25, 31.79, -23.12)
CIE-LCHlch(22.25, 39.31, 323.98°)
OKLaboklab(34.32% 0.0856 -0.0641)
OKLCHoklch(34.32% 0.107 323.2)
XYZxyz(5.7848, 3.5864, 9.6182)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522158 #275821
analogous
#362158 #522158 #582142
triadic
#522158 #585221 #215852
tetradic
#522158 #583621 #275821 #214258
square
#522158 #583621 #275821 #214258
split-complementary
#522158 #425821 #215836
monochromatic
#150816 #29102B #522158 #7B3285 #A542B1

Accessibility & contrast

On white

12.23
#522158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#522158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522158
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522158#FFFFFF#000000##FFFFFF
##5221581.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18325A
Deuteranopia (green-blind)
#293757
Tritanopia (blue-blind)
#532939
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522158;
/* rgb */ color: rgb(82, 33, 88);
/* oklch */ color: oklch(34.3% 0.107 323.2);
Tailwind
colors: {
  custom: {
    50: '#845f87',
    500: '#522158',
    950: '#000000',
  },
}
SCSS
$custom: #522158;
$custom-light: #845f87;
$custom-dark: #000000;
JSON
{
  "hex": "#522158",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 293.455,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34323,
    "c": 0.10693,
    "h": 323.2
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#522158
secondary
#508C49
accent
#D55361
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522158

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

Preview Lab → · Contrast checker → · Palette generator →

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