#522BA7#522BA7

#522BA7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.184 H 290.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#522BA7
RGBrgb(82, 43, 167)
HSLhsl(259, 59%, 41%)
HSVhsv(259, 74%, 65%)
CMYKcmyk(50.9%, 74.3%, 0%, 34.5%)
CIE-LABlab(30.18, 46.91, -60.16)
CIE-LCHlch(30.18, 76.28, 307.95°)
OKLaboklab(41.91% 0.0647 -0.1727)
OKLCHoklch(41.91% 0.184 290.5)
XYZxyz(11.3166, 6.3111, 37.1736)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BA7 #80A72B
analogous
#2B42A7 #522BA7 #902BA7
triadic
#522BA7 #A7522B #2BA752
tetradic
#522BA7 #A72B42 #80A72B #2BA790
square
#522BA7 #A72B42 #80A72B #2BA790
split-complementary
#522BA7 #A7902B #42A72B
monochromatic
#221246 #3A1E76 #522BA7 #6D41CE #9372DB

Accessibility & contrast

On white

9.28
#522BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#522BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BA7
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BA7#FFFFFF#000000##FFFFFF
##522BA71.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#354C67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ba7;
/* rgb */ color: rgb(82, 43, 167);
/* oklch */ color: oklch(41.9% 0.184 290.5);
Tailwind
colors: {
  custom: {
    50: '#8b68c2',
    500: '#522ba7',
    950: '#000000',
  },
}
SCSS
$custom: #522ba7;
$custom-light: #8b68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#522ba7",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 258.871,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41905,
    "c": 0.18445,
    "h": 290.5
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#522BA7
secondary
#A7C26C
accent
#E246B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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