#522F8A#522F8A

#522F8A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.144 H 297.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#522F8A
RGBrgb(82, 47, 138)
HSLhsl(263, 49%, 36%)
HSVhsv(263, 66%, 54%)
CMYKcmyk(40.6%, 65.9%, 0%, 45.9%)
CIE-LABlab(28.54, 36.60, -45.10)
CIE-LCHlch(28.54, 58.08, 309.06°)
OKLaboklab(39.98% 0.0657 -0.1285)
OKLCHoklch(39.98% 0.144 297.1)
XYZxyz(9.0825, 5.6617, 24.6541)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F8A #678A2F
analogous
#2F3A8A #522F8A #802F8A
triadic
#522F8A #8A522F #2F8A52
tetradic
#522F8A #8A2F3A #678A2F #2F8A80
square
#522F8A #8A2F3A #678A2F #2F8A80
split-complementary
#522F8A #8A802F #3A8A2F
monochromatic
#1C102F #371F5C #522F8A #6D3FB8 #8E68CC

Accessibility & contrast

On white

9.85
#522F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#522F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F8A
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F8A#FFFFFF#000000##FFFFFF
##522F8A1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#444458
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522f8a;
/* rgb */ color: rgb(82, 47, 138);
/* oklch */ color: oklch(40.0% 0.144 297.1);
Tailwind
colors: {
  custom: {
    50: '#876aad',
    500: '#522f8a',
    950: '#000000',
  },
}
SCSS
$custom: #522f8a;
$custom-light: #876aad;
$custom-dark: #000000;
JSON
{
  "hex": "#522f8a",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 263.077,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39982,
    "c": 0.14436,
    "h": 297.1
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#522F8A
secondary
#94B362
accent
#D94FA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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