#522E97#522E97

#522E97 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.162 H 293.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#522E97
RGBrgb(82, 46, 151)
HSLhsl(261, 53%, 39%)
HSVhsv(261, 70%, 59%)
CMYKcmyk(45.7%, 69.5%, 0%, 40.8%)
CIE-LABlab(29.37, 40.82, -51.78)
CIE-LCHlch(29.37, 65.93, 308.25°)
OKLaboklab(40.9% 0.0651 -0.1482)
OKLCHoklch(40.9% 0.162 293.7)
XYZxyz(10.0411, 5.9819, 29.8977)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E97 #73972E
analogous
#2E3F97 #522E97 #862E97
triadic
#522E97 #97522E #2E9752
tetradic
#522E97 #972E3F #73972E #2E9786
square
#522E97 #972E3F #73972E #2E9786
split-complementary
#522E97 #97862E #3F972E
monochromatic
#1F1139 #392068 #522E97 #6C3EC4 #906DD2

Accessibility & contrast

On white

9.56
#522E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#522E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E97
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E97#FFFFFF#000000##FFFFFF
##522E971.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#3E485F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522e97;
/* rgb */ color: rgb(82, 46, 151);
/* oklch */ color: oklch(40.9% 0.162 293.7);
Tailwind
colors: {
  custom: {
    50: '#8969b6',
    500: '#522e97',
    950: '#000000',
  },
}
SCSS
$custom: #522e97;
$custom-light: #8969b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522e97",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 260.571,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40898,
    "c": 0.16183,
    "h": 293.7
  },
  "luminance": 0.05982
}

Semantic roles & 50–950 ramp

primary
#522E97
secondary
#9DBA67
accent
#DD4BAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522E97

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

Preview Lab → · Contrast checker → · Palette generator →

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