#522997#522997

#522997 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.168 H 294.7°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#522997
RGBrgb(82, 41, 151)
HSLhsl(262, 57%, 38%)
HSVhsv(262, 73%, 59%)
CMYKcmyk(45.7%, 72.8%, 0%, 40.8%)
CIE-LABlab(28.42, 43.46, -53.32)
CIE-LCHlch(28.42, 68.79, 309.18°)
OKLaboklab(40.22% 0.0701 -0.1527)
OKLCHoklch(40.22% 0.168 294.7)
XYZxyz(9.8570, 5.6138, 29.8364)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522997 #6E9729
analogous
#293797 #522997 #892997
triadic
#522997 #975229 #299752
tetradic
#522997 #972937 #6E9729 #299789
square
#522997 #972937 #6E9729 #299789
split-complementary
#522997 #978929 #379729
monochromatic
#1E0F37 #381C67 #522997 #6C36C7 #8F65D5

Accessibility & contrast

On white

9.89
#522997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#522997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522997
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522997#FFFFFF#000000##FFFFFF
##5229971.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#3E455D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522997;
/* rgb */ color: rgb(82, 41, 151);
/* oklch */ color: oklch(40.2% 0.168 294.7);
Tailwind
colors: {
  custom: {
    50: '#8966b6',
    500: '#522997',
    950: '#000000',
  },
}
SCSS
$custom: #522997;
$custom-light: #8966b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522997",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 262.364,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4022,
    "c": 0.16803,
    "h": 294.7
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#522997
secondary
#99BB61
accent
#E147A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522997

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

Preview Lab → · Contrast checker → · Palette generator →

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