#522FAA#522FAA

#522FAA is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.184 H 289.2°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#522FAA
RGBrgb(82, 47, 170)
HSLhsl(257, 57%, 43%)
HSVhsv(257, 72%, 67%)
CMYKcmyk(51.8%, 72.4%, 0%, 33.3%)
CIE-LABlab(31.18, 45.71, -60.33)
CIE-LCHlch(31.18, 75.69, 307.15°)
OKLaboklab(42.69% 0.0605 -0.1733)
OKLCHoklch(42.69% 0.184 289.2)
XYZxyz(11.7498, 6.7286, 38.7021)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FAA #87AA2F
analogous
#2F4AAA #522FAA #8F2FAA
triadic
#522FAA #AA522F #2FAA52
tetradic
#522FAA #AA2F4A #87AA2F #2FAA8F
square
#522FAA #AA2F4A #87AA2F #2FAA8F
split-complementary
#522FAA #AA8F2F #4AAA2F
monochromatic
#24144A #3B227A #522FAA #6F49CD #9579DA

Accessibility & contrast

On white

8.95
#522FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#522FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FAA
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FAA#FFFFFF#000000##FFFFFF
##522FAA1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#324F69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522faa;
/* rgb */ color: rgb(82, 47, 170);
/* oklch */ color: oklch(42.7% 0.184 289.2);
Tailwind
colors: {
  custom: {
    50: '#8b6bc4',
    500: '#522faa',
    950: '#000000',
  },
}
SCSS
$custom: #522faa;
$custom-light: #8b6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#522faa",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 257.073,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42693,
    "c": 0.18353,
    "h": 289.2
  },
  "luminance": 0.06729
}

Semantic roles & 50–950 ramp

primary
#522FAA
secondary
#ACC272
accent
#E048B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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