#522BA4#522BA4

#522BA4 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.181 H 291.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#522BA4
RGBrgb(82, 43, 164)
HSLhsl(259, 58%, 41%)
HSVhsv(259, 74%, 64%)
CMYKcmyk(50%, 73.8%, 0%, 35.7%)
CIE-LABlab(29.92, 46.06, -58.79)
CIE-LCHlch(29.92, 74.68, 308.08°)
OKLaboklab(41.63% 0.0654 -0.1687)
OKLCHoklch(41.63% 0.181 291.2)
XYZxyz(11.0425, 6.2015, 35.7299)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BA4 #7DA42B
analogous
#2B40A4 #522BA4 #8E2BA4
triadic
#522BA4 #A4522B #2BA452
tetradic
#522BA4 #A42B40 #7DA42B #2BA48E
square
#522BA4 #A42B40 #7DA42B #2BA48E
split-complementary
#522BA4 #A48E2B #40A42B
monochromatic
#221243 #3A1E74 #522BA4 #6D3FCD #9270D9

Accessibility & contrast

On white

9.37
#522BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#522BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BA4
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BA4#FFFFFF#000000##FFFFFF
##522BA41.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#374B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522ba4;
/* rgb */ color: rgb(82, 43, 164);
/* oklch */ color: oklch(41.6% 0.181 291.2);
Tailwind
colors: {
  custom: {
    50: '#8b68c0',
    500: '#522ba4',
    950: '#000000',
  },
}
SCSS
$custom: #522ba4;
$custom-light: #8b68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#522ba4",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 259.339,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41633,
    "c": 0.18095,
    "h": 291.2
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#522BA4
secondary
#A5C16A
accent
#E246B0
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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