#522262#522262

#522262 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.1% C 0.116 H 316.8°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#522262
RGBrgb(82, 34, 98)
HSLhsl(285, 48%, 26%)
HSVhsv(285, 65%, 38%)
CMYKcmyk(16.3%, 65.3%, 0%, 61.6%)
CIE-LABlab(23.07, 33.48, -28.43)
CIE-LCHlch(23.07, 43.92, 319.67°)
OKLaboklab(35.11% 0.0847 -0.0795)
OKLCHoklch(35.11% 0.116 316.8)
XYZxyz(6.2560, 3.8200, 11.9607)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522262 #326222
analogous
#322262 #522262 #622252
triadic
#522262 #625222 #226252
tetradic
#522262 #623222 #326222 #225262
square
#522262 #623222 #326222 #225262
split-complementary
#522262 #526222 #226232
monochromatic
#130817 #2C1235 #522262 #78328F #9E42BD

Accessibility & contrast

On white

11.90
#522262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#522262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522262
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522262#FFFFFF#000000##FFFFFF
##5222621.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3464
Deuteranopia (green-blind)
#233860
Tritanopia (blue-blind)
#512D3E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522262;
/* rgb */ color: rgb(82, 34, 98);
/* oklch */ color: oklch(35.1% 0.116 316.8);
Tailwind
colors: {
  custom: {
    50: '#85608f',
    500: '#522262',
    950: '#000000',
  },
}
SCSS
$custom: #522262;
$custom-light: #85608f;
$custom-dark: #000000;
JSON
{
  "hex": "#522262",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 98
  },
  "hsl": {
    "h": 285,
    "s": 48.485,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35114,
    "c": 0.11617,
    "h": 316.8
  },
  "luminance": 0.0382
}

Semantic roles & 50–950 ramp

primary
#522262
secondary
#5D964A
accent
#D85072
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #522262

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

Preview Lab → · Contrast checker → · Palette generator →

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