#522258#522258

#522258 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.5% C 0.105 H 323.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#522258
RGBrgb(82, 34, 88)
HSLhsl(293, 44%, 24%)
HSVhsv(293, 61%, 35%)
CMYKcmyk(6.8%, 61.4%, 0%, 65.5%)
CIE-LABlab(22.45, 31.25, -22.80)
CIE-LCHlch(22.45, 38.68, 323.88°)
OKLaboklab(34.47% 0.0841 -0.0632)
OKLCHoklch(34.47% 0.105 323.1)
XYZxyz(5.8130, 3.6428, 9.6276)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522258 #285822
analogous
#372258 #522258 #582243
triadic
#522258 #585222 #225852
tetradic
#522258 #583722 #285822 #224358
square
#522258 #583722 #285822 #224358
split-complementary
#522258 #435822 #225837
monochromatic
#150916 #29112C #522258 #7B3384 #A444B0

Accessibility & contrast

On white

12.15
#522258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522258
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522258#FFFFFF#000000##FFFFFF
##5222581.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19325A
Deuteranopia (green-blind)
#293857
Tritanopia (blue-blind)
#532A39
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #522258;
/* rgb */ color: rgb(82, 34, 88);
/* oklch */ color: oklch(34.5% 0.105 323.1);
Tailwind
colors: {
  custom: {
    50: '#846087',
    500: '#522258',
    950: '#000000',
  },
}
SCSS
$custom: #522258;
$custom-light: #846087;
$custom-dark: #000000;
JSON
{
  "hex": "#522258",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 88
  },
  "hsl": {
    "h": 293.333,
    "s": 44.262,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34468,
    "c": 0.1052,
    "h": 323.1
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#522258
secondary
#518C4A
accent
#D45462
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522258

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

Preview Lab → · Contrast checker → · Palette generator →

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