#522FA5#522FA5

#522FA5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.178 H 290.3°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#522FA5
RGBrgb(82, 47, 165)
HSLhsl(258, 56%, 42%)
HSVhsv(258, 72%, 65%)
CMYKcmyk(50.3%, 71.5%, 0%, 35.3%)
CIE-LABlab(30.74, 44.28, -58.03)
CIE-LCHlch(30.74, 73.00, 307.34°)
OKLaboklab(42.25% 0.0615 -0.1665)
OKLCHoklch(42.25% 0.178 290.3)
XYZxyz(11.2858, 6.5430, 36.2583)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FA5 #82A52F
analogous
#2F47A5 #522FA5 #8D2FA5
triadic
#522FA5 #A5522F #2FA552
tetradic
#522FA5 #A52F47 #82A52F #2FA58D
square
#522FA5 #A52F47 #82A52F #2FA58D
split-complementary
#522FA5 #A58D2F #47A52F
monochromatic
#231446 #3A2175 #522FA5 #6E47CB #9376D8

Accessibility & contrast

On white

9.10
#522FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#522FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FA5
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FA5#FFFFFF#000000##FFFFFF
##522FA51.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#364E67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522fa5;
/* rgb */ color: rgb(82, 47, 165);
/* oklch */ color: oklch(42.2% 0.178 290.3);
Tailwind
colors: {
  custom: {
    50: '#8b6bc1',
    500: '#522fa5',
    950: '#000000',
  },
}
SCSS
$custom: #522fa5;
$custom-light: #8b6bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#522fa5",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 257.797,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42247,
    "c": 0.17755,
    "h": 290.3
  },
  "luminance": 0.06543
}

Semantic roles & 50–950 ramp

primary
#522FA5
secondary
#A8C070
accent
#DF49B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #522FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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