#522FAB#522FAB

#522FAB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.185 H 289.0°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#522FAB
RGBrgb(82, 47, 171)
HSLhsl(257, 57%, 43%)
HSVhsv(257, 73%, 67%)
CMYKcmyk(52%, 72.5%, 0%, 32.9%)
CIE-LABlab(31.27, 46.00, -60.78)
CIE-LCHlch(31.27, 76.22, 307.12°)
OKLaboklab(42.78% 0.0603 -0.1746)
OKLCHoklch(42.78% 0.185 289)
XYZxyz(11.8447, 6.7666, 39.2022)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FAB #88AB2F
analogous
#2F4AAB #522FAB #902FAB
triadic
#522FAB #AB522F #2FAB52
tetradic
#522FAB #AB2F4A #88AB2F #2FAB90
square
#522FAB #AB2F4A #88AB2F #2FAB90
split-complementary
#522FAB #AB902F #4AAB2F
monochromatic
#24154B #3B227B #522FAB #6F4ACD #957ADA

Accessibility & contrast

On white

8.92
#522FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522FAB
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FAB#FFFFFF#000000##FFFFFF
##522FAB1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#31506A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522fab;
/* rgb */ color: rgb(82, 47, 171);
/* oklch */ color: oklch(42.8% 0.185 289.0);
Tailwind
colors: {
  custom: {
    50: '#8c6bc5',
    500: '#522fab',
    950: '#000000',
  },
}
SCSS
$custom: #522fab;
$custom-light: #8c6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#522fab",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 256.935,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42783,
    "c": 0.18471,
    "h": 289
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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