#522167#522167

#522167 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.3% C 0.123 H 314.2°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#522167
RGBrgb(82, 33, 103)
HSLhsl(282, 51%, 27%)
HSVhsv(282, 68%, 40%)
CMYKcmyk(20.4%, 68%, 0%, 59.6%)
CIE-LABlab(23.21, 35.17, -31.47)
CIE-LCHlch(23.21, 47.20, 318.18°)
OKLaboklab(35.32% 0.086 -0.0884)
OKLCHoklch(35.32% 0.123 314.2)
XYZxyz(6.4713, 3.8610, 13.2337)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522167 #366721
analogous
#2F2167 #522167 #672159
triadic
#522167 #675221 #216752
tetradic
#522167 #672F21 #366721 #215967
square
#522167 #672F21 #366721 #215967
split-complementary
#522167 #596721 #21672F
monochromatic
#120717 #2D1239 #522167 #773095 #9B40C2

Accessibility & contrast

On white

11.85
#522167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522167
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522167#FFFFFF#000000##FFFFFF
##5221671.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043569
Deuteranopia (green-blind)
#1E3965
Tritanopia (blue-blind)
#502E41
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522167;
/* rgb */ color: rgb(82, 33, 103);
/* oklch */ color: oklch(35.3% 0.123 314.2);
Tailwind
colors: {
  custom: {
    50: '#856093',
    500: '#522167',
    950: '#000000',
  },
}
SCSS
$custom: #522167;
$custom-light: #856093;
$custom-dark: #000000;
JSON
{
  "hex": "#522167",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 103
  },
  "hsl": {
    "h": 282,
    "s": 51.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35322,
    "c": 0.12333,
    "h": 314.2
  },
  "luminance": 0.03861
}

Semantic roles & 50–950 ramp

primary
#522167
secondary
#619B49
accent
#DB4D77
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #522167

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

Preview Lab → · Contrast checker → · Palette generator →

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