#522362#522362

#522362 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.3% C 0.115 H 316.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#522362
RGBrgb(82, 35, 98)
HSLhsl(285, 47%, 26%)
HSVhsv(285, 64%, 38%)
CMYKcmyk(16.3%, 64.3%, 0%, 61.6%)
CIE-LABlab(23.26, 32.95, -28.11)
CIE-LCHlch(23.26, 43.31, 319.53°)
OKLaboklab(35.26% 0.0833 -0.0786)
OKLCHoklch(35.26% 0.115 316.6)
XYZxyz(6.2850, 3.8780, 11.9704)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522362 #336223
analogous
#322362 #522362 #622352
triadic
#522362 #625223 #236252
tetradic
#522362 #623223 #336223 #235262
square
#522362 #623223 #336223 #235262
split-complementary
#522362 #526223 #236232
monochromatic
#130817 #2C1335 #522362 #78338F #9D43BC

Accessibility & contrast

On white

11.83
#522362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#522362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522362
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522362#FFFFFF#000000##FFFFFF
##5223621.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113564
Deuteranopia (green-blind)
#243960
Tritanopia (blue-blind)
#512E3F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522362;
/* rgb */ color: rgb(82, 35, 98);
/* oklch */ color: oklch(35.3% 0.115 316.6);
Tailwind
colors: {
  custom: {
    50: '#85618f',
    500: '#522362',
    950: '#000000',
  },
}
SCSS
$custom: #522362;
$custom-light: #85618f;
$custom-dark: #000000;
JSON
{
  "hex": "#522362",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 98
  },
  "hsl": {
    "h": 284.762,
    "s": 47.368,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35257,
    "c": 0.11453,
    "h": 316.6
  },
  "luminance": 0.03878
}

Semantic roles & 50–950 ramp

primary
#522362
secondary
#5E964B
accent
#D75173
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #522362

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

Preview Lab → · Contrast checker → · Palette generator →

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