#522F86#522F86

#522F86 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.139 H 298.3°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#522F86
RGBrgb(82, 47, 134)
HSLhsl(264, 48%, 35%)
HSVhsv(264, 65%, 53%)
CMYKcmyk(38.8%, 64.9%, 0%, 47.5%)
CIE-LABlab(28.24, 35.48, -43.10)
CIE-LCHlch(28.24, 55.83, 309.46°)
OKLaboklab(39.67% 0.0661 -0.1227)
OKLCHoklch(39.67% 0.139 298.3)
XYZxyz(8.7982, 5.5480, 23.1570)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F86 #63862F
analogous
#2F3786 #522F86 #7D2F86
triadic
#522F86 #86522F #2F8652
tetradic
#522F86 #862F37 #63862F #2F867D
square
#522F86 #862F37 #63862F #2F867D
split-complementary
#522F86 #867D2F #37862F
monochromatic
#1B0F2B #361F59 #522F86 #6E3FB3 #8E66C9

Accessibility & contrast

On white

9.95
#522F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#522F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F86
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F86#FFFFFF#000000##FFFFFF
##522F861.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#044284
Tritanopia (blue-blind)
#464256
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522f86;
/* rgb */ color: rgb(82, 47, 134);
/* oklch */ color: oklch(39.7% 0.139 298.3);
Tailwind
colors: {
  custom: {
    50: '#8769aa',
    500: '#522f86',
    950: '#000000',
  },
}
SCSS
$custom: #522f86;
$custom-light: #8769aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522f86",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 264.138,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39669,
    "c": 0.13932,
    "h": 298.3
  },
  "luminance": 0.05548
}

Semantic roles & 50–950 ramp

primary
#522F86
secondary
#90B060
accent
#D850A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522F86

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

Preview Lab → · Contrast checker → · Palette generator →

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