#522F97#522F97

#522F97 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.161 H 293.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#522F97
RGBrgb(82, 47, 151)
HSLhsl(260, 53%, 39%)
HSVhsv(260, 69%, 59%)
CMYKcmyk(45.7%, 68.9%, 0%, 40.8%)
CIE-LABlab(29.57, 40.27, -51.45)
CIE-LCHlch(29.57, 65.34, 308.05°)
OKLaboklab(41.04% 0.0641 -0.1472)
OKLCHoklch(41.04% 0.161 293.5)
XYZxyz(10.0806, 6.0609, 29.9109)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F97 #74972F
analogous
#2F4097 #522F97 #862F97
triadic
#522F97 #97522F #2F9752
tetradic
#522F97 #972F40 #74972F #2F9786
square
#522F97 #972F40 #74972F #2F9786
split-complementary
#522F97 #97862F #40972F
monochromatic
#1F123A #392068 #522F97 #6C40C3 #906ED2

Accessibility & contrast

On white

9.49
#522F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#522F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F97
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F97#FFFFFF#000000##FFFFFF
##522F971.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#3E485F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522f97;
/* rgb */ color: rgb(82, 47, 151);
/* oklch */ color: oklch(41.0% 0.161 293.5);
Tailwind
colors: {
  custom: {
    50: '#896ab6',
    500: '#522f97',
    950: '#000000',
  },
}
SCSS
$custom: #522f97;
$custom-light: #896ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#522f97",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 260.192,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4104,
    "c": 0.16054,
    "h": 293.5
  },
  "luminance": 0.06061
}

Semantic roles & 50–950 ramp

primary
#522F97
secondary
#9EB968
accent
#DC4CAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #522F97

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

Preview Lab → · Contrast checker → · Palette generator →

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