#522181#522181

#522181 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.153 H 302.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#522181
RGBrgb(82, 33, 129)
HSLhsl(271, 59%, 32%)
HSVhsv(271, 74%, 51%)
CMYKcmyk(36.4%, 74.4%, 0%, 49.4%)
CIE-LABlab(25.16, 41.58, -44.97)
CIE-LCHlch(25.16, 61.25, 312.76°)
OKLaboklab(37.34% 0.0828 -0.1281)
OKLCHoklch(37.34% 0.153 302.9)
XYZxyz(7.9850, 4.4665, 21.2061)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522181 #508121
analogous
#222181 #522181 #812180
triadic
#522181 #815221 #218152
tetradic
#522181 #812221 #508121 #218081
square
#522181 #812221 #508121 #218081
split-complementary
#522181 #808121 #218122
monochromatic
#140820 #331550 #522181 #712DB2 #904BD1

Accessibility & contrast

On white

11.09
#522181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522181
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522181#FFFFFF#000000##FFFFFF
##5221811.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#48384F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522181;
/* rgb */ color: rgb(82, 33, 129);
/* oklch */ color: oklch(37.3% 0.153 302.9);
Tailwind
colors: {
  custom: {
    50: '#8761a6',
    500: '#522181',
    950: '#000000',
  },
}
SCSS
$custom: #522181;
$custom-light: #8761a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522181",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 270.625,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37335,
    "c": 0.15251,
    "h": 302.9
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#522181
secondary
#7EB44A
accent
#E24592
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #522181

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

Preview Lab → · Contrast checker → · Palette generator →

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