#522F80#522F80

#522F80 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.132 H 300.3°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#522F80
RGBrgb(82, 47, 128)
HSLhsl(266, 46%, 34%)
HSVhsv(266, 63%, 50%)
CMYKcmyk(35.9%, 63.3%, 0%, 49.8%)
CIE-LABlab(27.81, 33.82, -40.05)
CIE-LCHlch(27.81, 52.43, 310.18°)
OKLaboklab(39.21% 0.0665 -0.1137)
OKLCHoklch(39.21% 0.132 300.3)
XYZxyz(8.3915, 5.3853, 21.0153)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F80 #5D802F
analogous
#2F3580 #522F80 #7B2F80
triadic
#522F80 #80522F #2F8052
tetradic
#522F80 #802F35 #5D802F #2F807B
square
#522F80 #802F35 #5D802F #2F807B
split-complementary
#522F80 #807B2F #35802F
monochromatic
#190E26 #351F53 #522F80 #6F3FAD #8E63C6

Accessibility & contrast

On white

10.11
#522F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#522F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F80
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F80#FFFFFF#000000##FFFFFF
##522F801.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004183
Deuteranopia (green-blind)
#12417E
Tritanopia (blue-blind)
#484053
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522f80;
/* rgb */ color: rgb(82, 47, 128);
/* oklch */ color: oklch(39.2% 0.132 300.3);
Tailwind
colors: {
  custom: {
    50: '#8669a5',
    500: '#522f80',
    950: '#000000',
  },
}
SCSS
$custom: #522f80;
$custom-light: #8669a5;
$custom-dark: #000000;
JSON
{
  "hex": "#522f80",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 265.926,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39214,
    "c": 0.13169,
    "h": 300.3
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#522F80
secondary
#8BAD5E
accent
#D6529D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522F80

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

Preview Lab → · Contrast checker → · Palette generator →

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