#522FAC#522FAC

#522FAC is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.186 H 288.8°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#522FAC
RGBrgb(82, 47, 172)
HSLhsl(257, 57%, 43%)
HSVhsv(257, 73%, 67%)
CMYKcmyk(52.3%, 72.7%, 0%, 32.5%)
CIE-LABlab(31.36, 46.29, -61.24)
CIE-LCHlch(31.36, 76.76, 307.08°)
OKLaboklab(42.87% 0.0601 -0.1759)
OKLCHoklch(42.87% 0.186 288.8)
XYZxyz(11.9404, 6.8049, 39.7060)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FAC #89AC2F
analogous
#2F4AAC #522FAC #902FAC
triadic
#522FAC #AC522F #2FAC52
tetradic
#522FAC #AC2F4A #89AC2F #2FAC90
square
#522FAC #AC2F4A #89AC2F #2FAC90
split-complementary
#522FAC #AC902F #4AAC2F
monochromatic
#24154C #3B227C #522FAC #6F4BCE #967BDB

Accessibility & contrast

On white

8.89
#522FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#522FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FAC
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FAC#FFFFFF#000000##FFFFFF
##522FAC1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#30506A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522fac;
/* rgb */ color: rgb(82, 47, 172);
/* oklch */ color: oklch(42.9% 0.186 288.8);
Tailwind
colors: {
  custom: {
    50: '#8c6bc6',
    500: '#522fac',
    950: '#000000',
  },
}
SCSS
$custom: #522fac;
$custom-light: #8c6bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#522fac",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 256.8,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42873,
    "c": 0.1859,
    "h": 288.8
  },
  "luminance": 0.06805
}

Semantic roles & 50–950 ramp

primary
#522FAC
secondary
#ADC374
accent
#E047B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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