#522358#522358

#522358 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.6% C 0.103 H 323.0°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#522358
RGBrgb(82, 35, 88)
HSLhsl(293, 43%, 24%)
HSVhsv(293, 60%, 35%)
CMYKcmyk(6.8%, 60.2%, 0%, 65.5%)
CIE-LABlab(22.66, 30.70, -22.48)
CIE-LCHlch(22.66, 38.05, 323.78°)
OKLaboklab(34.62% 0.0826 -0.0623)
OKLCHoklch(34.62% 0.103 323)
XYZxyz(5.8420, 3.7008, 9.6372)
Luminance0.0370 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522358 #295823
analogous
#382358 #522358 #582344
triadic
#522358 #585223 #235852
tetradic
#522358 #583823 #295823 #234458
square
#522358 #583823 #295823 #234458
split-complementary
#522358 #445823 #235838
monochromatic
#140916 #29122C #522358 #7B3484 #A446B0

Accessibility & contrast

On white

12.07
#522358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#522358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522358
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522358#FFFFFF#000000##FFFFFF
##5223581.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A335A
Deuteranopia (green-blind)
#2A3857
Tritanopia (blue-blind)
#532A3A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #522358;
/* rgb */ color: rgb(82, 35, 88);
/* oklch */ color: oklch(34.6% 0.103 323.0);
Tailwind
colors: {
  custom: {
    50: '#846187',
    500: '#522358',
    950: '#000000',
  },
}
SCSS
$custom: #522358;
$custom-light: #846187;
$custom-dark: #000000;
JSON
{
  "hex": "#522358",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 88
  },
  "hsl": {
    "h": 293.208,
    "s": 43.089,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34617,
    "c": 0.10345,
    "h": 323
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#522358
secondary
#528C4B
accent
#D35563
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522358

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

Preview Lab → · Contrast checker → · Palette generator →

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