#522180#522180

#522180 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.151 H 303.2°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#522180
RGBrgb(82, 33, 128)
HSLhsl(271, 59%, 32%)
HSVhsv(271, 74%, 50%)
CMYKcmyk(35.9%, 74.2%, 0%, 49.8%)
CIE-LABlab(25.08, 41.33, -44.47)
CIE-LCHlch(25.08, 60.71, 312.90°)
OKLaboklab(37.25% 0.083 -0.1266)
OKLCHoklch(37.25% 0.151 303.2)
XYZxyz(7.9189, 4.4401, 20.8577)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522180 #4F8021
analogous
#222180 #522180 #80217F
triadic
#522180 #805221 #218052
tetradic
#522180 #802221 #4F8021 #217F80
square
#522180 #802221 #4F8021 #217F80
split-complementary
#522180 #7F8021 #218022
monochromatic
#14081F #33144F #522180 #712EB1 #904BD1

Accessibility & contrast

On white

11.12
#522180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#522180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522180
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522180#FFFFFF#000000##FFFFFF
##5221801.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#49384E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #522180;
/* rgb */ color: rgb(82, 33, 128);
/* oklch */ color: oklch(37.3% 0.151 303.2);
Tailwind
colors: {
  custom: {
    50: '#8761a6',
    500: '#522180',
    950: '#000000',
  },
}
SCSS
$custom: #522180;
$custom-light: #8761a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522180",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 270.947,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37252,
    "c": 0.15138,
    "h": 303.2
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#522180
secondary
#7DB34A
accent
#E24691
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #522180

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

Preview Lab → · Contrast checker → · Palette generator →

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