#522882#522882

#522882 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.144 H 301.2°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#522882
RGBrgb(82, 40, 130)
HSLhsl(268, 53%, 33%)
HSVhsv(268, 69%, 51%)
CMYKcmyk(36.9%, 69.2%, 0%, 49%)
CIE-LABlab(26.51, 38.28, -43.40)
CIE-LCHlch(26.51, 57.87, 311.42°)
OKLaboklab(38.33% 0.0749 -0.1235)
OKLCHoklch(38.33% 0.144 301.2)
XYZxyz(8.2668, 4.9231, 21.6295)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522882 #588228
analogous
#282B82 #522882 #7F2882
triadic
#522882 #825228 #288252
tetradic
#522882 #82282B #588228 #28827F
square
#522882 #82282B #588228 #28827F
split-complementary
#522882 #827F28 #2B8228
monochromatic
#170B24 #341A53 #522882 #7036B1 #8E59CC

Accessibility & contrast

On white

10.58
#522882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#522882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522882
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522882#FFFFFF#000000##FFFFFF
##5228821.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#483D51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522882;
/* rgb */ color: rgb(82, 40, 130);
/* oklch */ color: oklch(38.3% 0.144 301.2);
Tailwind
colors: {
  custom: {
    50: '#8765a7',
    500: '#522882',
    950: '#000000',
  },
}
SCSS
$custom: #522882;
$custom-light: #8765a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522882",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 268,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38328,
    "c": 0.14442,
    "h": 301.2
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

primary
#522882
secondary
#86B155
accent
#DC4B99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522882

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

Preview Lab → · Contrast checker → · Palette generator →

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