#522BAC#522BAC

#522BAC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.190 H 289.5°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#522BAC
RGBrgb(82, 43, 172)
HSLhsl(258, 60%, 42%)
HSVhsv(258, 75%, 67%)
CMYKcmyk(52.3%, 75%, 0%, 32.5%)
CIE-LABlab(30.64, 48.31, -62.41)
CIE-LCHlch(30.64, 78.93, 307.74°)
OKLaboklab(42.37% 0.0634 -0.1794)
OKLCHoklch(42.37% 0.19 289.5)
XYZxyz(11.7878, 6.4996, 39.6552)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BAC #85AC2B
analogous
#2B44AC #522BAC #932BAC
triadic
#522BAC #AC522B #2BAC52
tetradic
#522BAC #AC2B44 #85AC2B #2BAC93
square
#522BAC #AC2B44 #85AC2B #2BAC93
split-complementary
#522BAC #AC932B #44AC2B
monochromatic
#23134A #3B1F7B #522BAC #6E44D0 #9475DC

Accessibility & contrast

On white

9.13
#522BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#522BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BAC
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BAC#FFFFFF#000000##FFFFFF
##522BAC1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#314E69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522bac;
/* rgb */ color: rgb(82, 43, 172);
/* oklch */ color: oklch(42.4% 0.190 289.5);
Tailwind
colors: {
  custom: {
    50: '#8c69c6',
    500: '#522bac',
    950: '#000000',
  },
}
SCSS
$custom: #522bac;
$custom-light: #8c69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#522bac",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 258.14,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42365,
    "c": 0.19024,
    "h": 289.5
  },
  "luminance": 0.065
}

Semantic roles & 50–950 ramp

primary
#522BAC
secondary
#AAC46F
accent
#E345B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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