#522154#522154

#522154 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.1% C 0.103 H 326.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#522154
RGBrgb(82, 33, 84)
HSLhsl(298, 44%, 23%)
HSVhsv(298, 61%, 33%)
CMYKcmyk(2.4%, 60.7%, 0%, 67.1%)
CIE-LABlab(22.02, 30.94, -20.81)
CIE-LCHlch(22.02, 37.29, 326.07°)
OKLaboklab(34.08% 0.0852 -0.0574)
OKLCHoklch(34.08% 0.103 326)
XYZxyz(5.6237, 3.5220, 8.7694)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522154 #235421
analogous
#382154 #522154 #54213C
triadic
#522154 #545221 #215452
tetradic
#522154 #543821 #235421 #213C54
square
#522154 #543821 #235421 #213C54
split-complementary
#522154 #3C5421 #215438
monochromatic
#150916 #271028 #522154 #7D3280 #A844AC

Accessibility & contrast

On white

12.32
#522154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#522154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522154
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522154#FFFFFF#000000##FFFFFF
##5221541.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3156
Deuteranopia (green-blind)
#2B3753
Tritanopia (blue-blind)
#542737
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522154;
/* rgb */ color: rgb(82, 33, 84);
/* oklch */ color: oklch(34.1% 0.103 326.0);
Tailwind
colors: {
  custom: {
    50: '#845f84',
    500: '#522154',
    950: '#000000',
  },
}
SCSS
$custom: #522154;
$custom-light: #845f84;
$custom-dark: #000000;
JSON
{
  "hex": "#522154",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 297.647,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34079,
    "c": 0.10272,
    "h": 326
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#522154
secondary
#4B8849
accent
#D35459
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522154

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

Preview Lab → · Contrast checker → · Palette generator →

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