#522165#522165

#522165 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.2% C 0.121 H 315.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#522165
RGBrgb(82, 33, 101)
HSLhsl(283, 51%, 26%)
HSVhsv(283, 67%, 40%)
CMYKcmyk(18.8%, 67.3%, 0%, 60.4%)
CIE-LABlab(23.07, 34.71, -30.38)
CIE-LCHlch(23.07, 46.13, 318.80°)
OKLaboklab(35.18% 0.086 -0.0853)
OKLCHoklch(35.18% 0.121 315.3)
XYZxyz(6.3721, 3.8214, 12.7113)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522165 #346521
analogous
#302165 #522165 #652156
triadic
#522165 #655221 #216552
tetradic
#522165 #653021 #346521 #215665
square
#522165 #653021 #346521 #215665
split-complementary
#522165 #566521 #216530
monochromatic
#130817 #2D1237 #522165 #773093 #9D40C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522165#FFFFFF#000000##FFFFFF
##5221651.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)
#073467
Deuteranopia (green-blind)
#203863
Tritanopia (blue-blind)
#512D3F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522165;
/* rgb */ color: rgb(82, 33, 101);
/* oklch */ color: oklch(35.2% 0.121 315.3);
Tailwind
colors: {
  custom: {
    50: '#856091',
    500: '#522165',
    950: '#000000',
  },
}
SCSS
$custom: #522165;
$custom-light: #856091;
$custom-dark: #000000;
JSON
{
  "hex": "#522165",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 101
  },
  "hsl": {
    "h": 283.235,
    "s": 50.746,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35181,
    "c": 0.12111,
    "h": 315.3
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#522165
secondary
#5F9949
accent
#DA4E75
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050D
muted
#7C797D

Preview Lab

Preview with #522165

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

Preview Lab → · Contrast checker → · Palette generator →

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