#522797#522797

#522797 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.170 H 295.0°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#522797
RGBrgb(82, 39, 151)
HSLhsl(263, 59%, 37%)
HSVhsv(263, 74%, 59%)
CMYKcmyk(45.7%, 74.2%, 0%, 40.8%)
CIE-LABlab(28.06, 44.47, -53.91)
CIE-LCHlch(28.06, 69.88, 309.52°)
OKLaboklab(39.97% 0.0721 -0.1544)
OKLCHoklch(39.97% 0.17 295)
XYZxyz(9.7896, 5.4790, 29.8139)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522797 #6C9727
analogous
#273497 #522797 #8A2797
triadic
#522797 #975227 #279752
tetradic
#522797 #972734 #6C9727 #27978A
square
#522797 #972734 #6C9727 #27978A
split-complementary
#522797 #978A27 #349727
monochromatic
#1D0E36 #381A66 #522797 #6C34C8 #8F62D6

Accessibility & contrast

On white

10.02
#522797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522797
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522797#FFFFFF#000000##FFFFFF
##5227971.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#3F445D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522797;
/* rgb */ color: rgb(82, 39, 151);
/* oklch */ color: oklch(40.0% 0.170 295.0);
Tailwind
colors: {
  custom: {
    50: '#8965b7',
    500: '#522797',
    950: '#000000',
  },
}
SCSS
$custom: #522797;
$custom-light: #8965b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522797",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 263.036,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39967,
    "c": 0.17037,
    "h": 295
  },
  "luminance": 0.05479
}

Semantic roles & 50–950 ramp

primary
#522797
secondary
#98BC5E
accent
#E246A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522797

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

Preview Lab → · Contrast checker → · Palette generator →

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