#522168#522168

#522168 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.4% C 0.124 H 313.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#522168
RGBrgb(82, 33, 104)
HSLhsl(281, 52%, 27%)
HSVhsv(281, 68%, 41%)
CMYKcmyk(21.2%, 68.3%, 0%, 59.2%)
CIE-LABlab(23.27, 35.41, -32.01)
CIE-LCHlch(23.27, 47.74, 317.88°)
OKLaboklab(35.39% 0.0859 -0.09)
OKLCHoklch(35.39% 0.124 313.7)
XYZxyz(6.5218, 3.8812, 13.4996)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522168 #376821
analogous
#2E2168 #522168 #68215B
triadic
#522168 #685221 #216852
tetradic
#522168 #682E21 #376821 #215B68
square
#522168 #682E21 #376821 #215B68
split-complementary
#522168 #5B6821 #21682E
monochromatic
#120717 #2D123A #522168 #773096 #9A41C3

Accessibility & contrast

On white

11.82
#522168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522168
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522168#FFFFFF#000000##FFFFFF
##5221681.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02356A
Deuteranopia (green-blind)
#1D3966
Tritanopia (blue-blind)
#502F41
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522168;
/* rgb */ color: rgb(82, 33, 104);
/* oklch */ color: oklch(35.4% 0.124 313.7);
Tailwind
colors: {
  custom: {
    50: '#856093',
    500: '#522168',
    950: '#000000',
  },
}
SCSS
$custom: #522168;
$custom-light: #856093;
$custom-dark: #000000;
JSON
{
  "hex": "#522168",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 281.408,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35393,
    "c": 0.12445,
    "h": 313.7
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#522168
secondary
#639C49
accent
#DB4D79
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #522168

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

Preview Lab → · Contrast checker → · Palette generator →

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