#522B97#522B97

#522B97 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.166 H 294.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#522B97
RGBrgb(82, 43, 151)
HSLhsl(262, 56%, 38%)
HSVhsv(262, 72%, 59%)
CMYKcmyk(45.7%, 71.5%, 0%, 40.8%)
CIE-LABlab(28.79, 42.42, -52.72)
CIE-LCHlch(28.79, 67.67, 308.82°)
OKLaboklab(40.48% 0.0682 -0.1509)
OKLCHoklch(40.48% 0.166 294.3)
XYZxyz(9.9279, 5.7557, 29.8600)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B97 #70972B
analogous
#2B3A97 #522B97 #882B97
triadic
#522B97 #97522B #2B9752
tetradic
#522B97 #972B3A #70972B #2B9788
square
#522B97 #972B3A #70972B #2B9788
split-complementary
#522B97 #97882B #3A972B
monochromatic
#1E1038 #381D67 #522B97 #6C39C7 #8F68D4

Accessibility & contrast

On white

9.76
#522B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#522B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B97
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B97#FFFFFF#000000##FFFFFF
##522B971.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#3E465E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522b97;
/* rgb */ color: rgb(82, 43, 151);
/* oklch */ color: oklch(40.5% 0.166 294.3);
Tailwind
colors: {
  custom: {
    50: '#8968b6',
    500: '#522b97',
    950: '#000000',
  },
}
SCSS
$custom: #522b97;
$custom-light: #8968b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522b97",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 261.667,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40484,
    "c": 0.1656,
    "h": 294.3
  },
  "luminance": 0.05756
}

Semantic roles & 50–950 ramp

primary
#522B97
secondary
#9BBB63
accent
#DF49A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522B97

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

Preview Lab → · Contrast checker → · Palette generator →

#522B97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva