#522B80#522B80

#522B80 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.138 H 301.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#522B80
RGBrgb(82, 43, 128)
HSLhsl(268, 50%, 34%)
HSVhsv(268, 66%, 50%)
CMYKcmyk(35.9%, 66.4%, 0%, 49.8%)
CIE-LABlab(26.96, 36.10, -41.42)
CIE-LCHlch(26.96, 54.94, 311.08°)
OKLaboklab(38.6% 0.0715 -0.1177)
OKLCHoklch(38.6% 0.138 301.3)
XYZxyz(8.2389, 5.0801, 20.9644)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B80 #59802B
analogous
#2B2E80 #522B80 #7C2B80
triadic
#522B80 #80522B #2B8052
tetradic
#522B80 #802B2E #59802B #2B807C
square
#522B80 #802B2E #59802B #2B807C
split-complementary
#522B80 #807C2B #2E802B
monochromatic
#170C24 #351C52 #522B80 #6F3AAE #8E5DC9

Accessibility & contrast

On white

10.42
#522B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522B80
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B80#FFFFFF#000000##FFFFFF
##522B801.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#083F7E
Tritanopia (blue-blind)
#483E51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522b80;
/* rgb */ color: rgb(82, 43, 128);
/* oklch */ color: oklch(38.6% 0.138 301.3);
Tailwind
colors: {
  custom: {
    50: '#8667a5',
    500: '#522b80',
    950: '#000000',
  },
}
SCSS
$custom: #522b80;
$custom-light: #8667a5;
$custom-dark: #000000;
JSON
{
  "hex": "#522b80",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 128
  },
  "hsl": {
    "h": 267.529,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38602,
    "c": 0.1377,
    "h": 301.3
  },
  "luminance": 0.0508
}

Semantic roles & 50–950 ramp

primary
#522B80
secondary
#87AE58
accent
#D94F9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522B80

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

Preview Lab → · Contrast checker → · Palette generator →

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