#522BA9#522BA9

#522BA9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.187 H 290.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#522BA9
RGBrgb(82, 43, 169)
HSLhsl(259, 59%, 42%)
HSVhsv(259, 75%, 66%)
CMYKcmyk(51.5%, 74.6%, 0%, 33.7%)
CIE-LABlab(30.37, 47.47, -61.06)
CIE-LCHlch(30.37, 77.34, 307.86°)
OKLaboklab(42.09% 0.0642 -0.1754)
OKLCHoklch(42.09% 0.187 290.1)
XYZxyz(11.5029, 6.3857, 38.1549)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BA9 #82A92B
analogous
#2B43A9 #522BA9 #912BA9
triadic
#522BA9 #A9522B #2BA952
tetradic
#522BA9 #A92B43 #82A92B #2BA991
square
#522BA9 #A92B43 #82A92B #2BA991
split-complementary
#522BA9 #A9912B #43A92B
monochromatic
#231247 #3A1F78 #522BA9 #6E42CF #9373DB

Accessibility & contrast

On white

9.22
#522BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#522BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BA9
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BA9#FFFFFF#000000##FFFFFF
##522BA91.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#334D68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ba9;
/* rgb */ color: rgb(82, 43, 169);
/* oklch */ color: oklch(42.1% 0.187 290.1);
Tailwind
colors: {
  custom: {
    50: '#8c68c4',
    500: '#522ba9',
    950: '#000000',
  },
}
SCSS
$custom: #522ba9;
$custom-light: #8c68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#522ba9",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 258.571,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42088,
    "c": 0.18677,
    "h": 290.1
  },
  "luminance": 0.06386
}

Semantic roles & 50–950 ramp

primary
#522BA9
secondary
#A8C36D
accent
#E345B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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