#522B82#522B82

#522B82 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.140 H 300.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#522B82
RGBrgb(82, 43, 130)
HSLhsl(267, 50%, 34%)
HSVhsv(267, 67%, 51%)
CMYKcmyk(36.9%, 66.9%, 0%, 49%)
CIE-LABlab(27.11, 36.64, -42.43)
CIE-LCHlch(27.11, 56.06, 310.81°)
OKLaboklab(38.76% 0.0713 -0.1207)
OKLCHoklch(38.76% 0.14 300.6)
XYZxyz(8.3718, 5.1332, 21.6645)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B82 #5B822B
analogous
#2B2F82 #522B82 #7E2B82
triadic
#522B82 #82522B #2B8252
tetradic
#522B82 #822B2F #5B822B #2B827E
square
#522B82 #822B2F #5B822B #2B827E
split-complementary
#522B82 #827E2B #2F822B
monochromatic
#180D26 #351C54 #522B82 #6F3AB0 #8E5ECA

Accessibility & contrast

On white

10.36
#522B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B82
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B82#FFFFFF#000000##FFFFFF
##522B821.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#033F80
Tritanopia (blue-blind)
#483E52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522b82;
/* rgb */ color: rgb(82, 43, 130);
/* oklch */ color: oklch(38.8% 0.140 300.6);
Tailwind
colors: {
  custom: {
    50: '#8767a7',
    500: '#522b82',
    950: '#000000',
  },
}
SCSS
$custom: #522b82;
$custom-light: #8767a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522b82",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 130
  },
  "hsl": {
    "h": 266.897,
    "s": 50.289,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38757,
    "c": 0.14016,
    "h": 300.6
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#522B82
secondary
#89B059
accent
#DA4E9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522B82

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

Preview Lab → · Contrast checker → · Palette generator →

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