#522884#522884

#522884 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.147 H 300.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#522884
RGBrgb(82, 40, 132)
HSLhsl(267, 53%, 34%)
HSVhsv(267, 70%, 52%)
CMYKcmyk(37.9%, 69.7%, 0%, 48.2%)
CIE-LABlab(26.67, 38.81, -44.40)
CIE-LCHlch(26.67, 58.97, 311.16°)
OKLaboklab(38.49% 0.0746 -0.1264)
OKLCHoklch(38.49% 0.147 300.5)
XYZxyz(8.4023, 4.9773, 22.3434)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522884 #5A8428
analogous
#282C84 #522884 #802884
triadic
#522884 #845228 #288452
tetradic
#522884 #84282C #5A8428 #288480
square
#522884 #84282C #5A8428 #288480
split-complementary
#522884 #848028 #2C8428
monochromatic
#180C26 #351A55 #522884 #6F36B3 #8E5ACD

Accessibility & contrast

On white

10.52
#522884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522884
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522884#FFFFFF#000000##FFFFFF
##5228841.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#473D52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522884;
/* rgb */ color: rgb(82, 40, 132);
/* oklch */ color: oklch(38.5% 0.147 300.5);
Tailwind
colors: {
  custom: {
    50: '#8765a8',
    500: '#522884',
    950: '#000000',
  },
}
SCSS
$custom: #522884;
$custom-light: #8765a8;
$custom-dark: #000000;
JSON
{
  "hex": "#522884",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 267.391,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38488,
    "c": 0.1468,
    "h": 300.5
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#522884
secondary
#88B256
accent
#DD4B9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522884

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

Preview Lab → · Contrast checker → · Palette generator →

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