#522A83#522A83

#522A83 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.143 H 300.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#522A83
RGBrgb(82, 42, 131)
HSLhsl(267, 51%, 34%)
HSVhsv(267, 68%, 51%)
CMYKcmyk(37.4%, 67.9%, 0%, 48.6%)
CIE-LABlab(26.99, 37.46, -43.26)
CIE-LCHlch(26.99, 57.23, 310.89°)
OKLaboklab(38.69% 0.0724 -0.1231)
OKLCHoklch(38.69% 0.143 300.5)
XYZxyz(8.4034, 5.0884, 22.0078)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A83 #5B832A
analogous
#2A2F83 #522A83 #7F2A83
triadic
#522A83 #83522A #2A8352
tetradic
#522A83 #832A2F #5B832A #2A837F
square
#522A83 #832A2F #5B832A #2A837F
split-complementary
#522A83 #837F2A #2F832A
monochromatic
#180C26 #351B55 #522A83 #6F39B1 #8E5DCB

Accessibility & contrast

On white

10.41
#522A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A83
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A83#FFFFFF#000000##FFFFFF
##522A831.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F86
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#473E52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522a83;
/* rgb */ color: rgb(82, 42, 131);
/* oklch */ color: oklch(38.7% 0.143 300.5);
Tailwind
colors: {
  custom: {
    50: '#8766a8',
    500: '#522a83',
    950: '#000000',
  },
}
SCSS
$custom: #522a83;
$custom-light: #8766a8;
$custom-dark: #000000;
JSON
{
  "hex": "#522a83",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 131
  },
  "hsl": {
    "h": 266.966,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3869,
    "c": 0.14282,
    "h": 300.5
  },
  "luminance": 0.05088
}

Semantic roles & 50–950 ramp

primary
#522A83
secondary
#89B158
accent
#DB4D9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A83

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

Preview Lab → · Contrast checker → · Palette generator →

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