#522991#522991

#522991 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.161 H 296.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#522991
RGBrgb(82, 41, 145)
HSLhsl(264, 56%, 36%)
HSVhsv(264, 72%, 57%)
CMYKcmyk(43.4%, 71.7%, 0%, 43.1%)
CIE-LABlab(27.91, 41.81, -50.46)
CIE-LCHlch(27.91, 65.53, 309.64°)
OKLaboklab(39.7% 0.0713 -0.1443)
OKLCHoklch(39.7% 0.161 296.3)
XYZxyz(9.3821, 5.4238, 27.3352)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522991 #689129
analogous
#293491 #522991 #862991
triadic
#522991 #915229 #299152
tetradic
#522991 #912934 #689129 #299186
square
#522991 #912934 #689129 #299186
split-complementary
#522991 #918629 #349129
monochromatic
#1C0E32 #371C61 #522991 #6D36C1 #8E62D3

Accessibility & contrast

On white

10.07
#522991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#522991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522991
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522991#FFFFFF#000000##FFFFFF
##5229911.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522991;
/* rgb */ color: rgb(82, 41, 145);
/* oklch */ color: oklch(39.7% 0.161 296.3);
Tailwind
colors: {
  custom: {
    50: '#8866b2',
    500: '#522991',
    950: '#000000',
  },
}
SCSS
$custom: #522991;
$custom-light: #8866b2;
$custom-dark: #000000;
JSON
{
  "hex": "#522991",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 263.654,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39703,
    "c": 0.16095,
    "h": 296.3
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#522991
secondary
#95B85D
accent
#DF49A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522991

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

Preview Lab → · Contrast checker → · Palette generator →

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