#522891#522891

#522891 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.162 H 296.5°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#522891
RGBrgb(82, 40, 145)
HSLhsl(264, 57%, 36%)
HSVhsv(264, 72%, 57%)
CMYKcmyk(43.4%, 72.4%, 0%, 43.1%)
CIE-LABlab(27.72, 42.33, -50.76)
CIE-LCHlch(27.72, 66.10, 309.82°)
OKLaboklab(39.57% 0.0724 -0.1452)
OKLCHoklch(39.57% 0.162 296.5)
XYZxyz(9.3480, 5.3556, 27.3238)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522891 #679128
analogous
#283391 #522891 #872891
triadic
#522891 #915228 #289152
tetradic
#522891 #912833 #679128 #289187
square
#522891 #912833 #679128 #289187
split-complementary
#522891 #918728 #339128
monochromatic
#1C0E31 #371B61 #522891 #6D35C1 #8E60D3

Accessibility & contrast

On white

10.14
#522891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#522891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522891
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522891#FFFFFF#000000##FFFFFF
##5228911.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#42425A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522891;
/* rgb */ color: rgb(82, 40, 145);
/* oklch */ color: oklch(39.6% 0.162 296.5);
Tailwind
colors: {
  custom: {
    50: '#8966b2',
    500: '#522891',
    950: '#000000',
  },
}
SCSS
$custom: #522891;
$custom-light: #8966b2;
$custom-dark: #000000;
JSON
{
  "hex": "#522891",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 264,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39571,
    "c": 0.1622,
    "h": 296.5
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#522891
secondary
#94B95C
accent
#E048A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522891

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

Preview Lab → · Contrast checker → · Palette generator →

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