#522259#522259

#522259 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.5% C 0.106 H 322.4°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#522259
RGBrgb(82, 34, 89)
HSLhsl(292, 45%, 24%)
HSVhsv(292, 62%, 35%)
CMYKcmyk(7.9%, 61.8%, 0%, 65.1%)
CIE-LABlab(22.51, 31.46, -23.37)
CIE-LCHlch(22.51, 39.20, 323.39°)
OKLaboklab(34.53% 0.0842 -0.0648)
OKLCHoklch(34.53% 0.106 322.4)
XYZxyz(5.8547, 3.6595, 9.8472)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522259 #295922
analogous
#372259 #522259 #592245
triadic
#522259 #595222 #225952
tetradic
#522259 #593722 #295922 #224559
square
#522259 #593722 #295922 #224559
split-complementary
#522259 #455922 #225937
monochromatic
#140816 #29112D #522259 #7B3385 #A444B2

Accessibility & contrast

On white

12.13
#522259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#522259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522259
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522259#FFFFFF#000000##FFFFFF
##5222591.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18325B
Deuteranopia (green-blind)
#293858
Tritanopia (blue-blind)
#532A3A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #522259;
/* rgb */ color: rgb(82, 34, 89);
/* oklch */ color: oklch(34.5% 0.106 322.4);
Tailwind
colors: {
  custom: {
    50: '#846088',
    500: '#522259',
    950: '#000000',
  },
}
SCSS
$custom: #522259;
$custom-light: #846088;
$custom-dark: #000000;
JSON
{
  "hex": "#522259",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 89
  },
  "hsl": {
    "h": 292.364,
    "s": 44.715,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3453,
    "c": 0.10627,
    "h": 322.4
  },
  "luminance": 0.03659
}

Semantic roles & 50–950 ramp

primary
#522259
secondary
#528D4A
accent
#D45364
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522259

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

Preview Lab → · Contrast checker → · Palette generator →

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