#522166#522166

#522166 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.3% C 0.122 H 314.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#522166
RGBrgb(82, 33, 102)
HSLhsl(283, 51%, 26%)
HSVhsv(283, 68%, 40%)
CMYKcmyk(19.6%, 67.6%, 0%, 60%)
CIE-LABlab(23.14, 34.94, -30.93)
CIE-LCHlch(23.14, 46.66, 318.49°)
OKLaboklab(35.25% 0.086 -0.0869)
OKLCHoklch(35.25% 0.122 314.7)
XYZxyz(6.4214, 3.8411, 12.9709)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522166 #356621
analogous
#302166 #522166 #662158
triadic
#522166 #665221 #216652
tetradic
#522166 #663021 #356621 #215866
square
#522166 #663021 #356621 #215866
split-complementary
#522166 #586621 #216630
monochromatic
#130717 #2D1238 #522166 #773094 #9C40C1

Accessibility & contrast

On white

11.88
#522166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#522166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522166
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522166#FFFFFF#000000##FFFFFF
##5221661.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053468
Deuteranopia (green-blind)
#1F3864
Tritanopia (blue-blind)
#502E40
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522166;
/* rgb */ color: rgb(82, 33, 102);
/* oklch */ color: oklch(35.3% 0.122 314.7);
Tailwind
colors: {
  custom: {
    50: '#856092',
    500: '#522166',
    950: '#000000',
  },
}
SCSS
$custom: #522166;
$custom-light: #856092;
$custom-dark: #000000;
JSON
{
  "hex": "#522166",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 102
  },
  "hsl": {
    "h": 282.609,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35251,
    "c": 0.12222,
    "h": 314.7
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#522166
secondary
#609A49
accent
#DB4D76
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #522166

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

Preview Lab → · Contrast checker → · Palette generator →

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