#522F87#522F87

#522F87 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.141 H 298.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#522F87
RGBrgb(82, 47, 135)
HSLhsl(264, 48%, 36%)
HSVhsv(264, 65%, 53%)
CMYKcmyk(39.3%, 65.2%, 0%, 47.1%)
CIE-LABlab(28.32, 35.76, -43.60)
CIE-LCHlch(28.32, 56.39, 309.36°)
OKLaboklab(39.75% 0.066 -0.1241)
OKLCHoklch(39.75% 0.141 298)
XYZxyz(8.8683, 5.5760, 23.5260)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F87 #64872F
analogous
#2F3887 #522F87 #7E2F87
triadic
#522F87 #87522F #2F8752
tetradic
#522F87 #872F38 #64872F #2F877E
square
#522F87 #872F38 #64872F #2F877E
split-complementary
#522F87 #877E2F #38872F
monochromatic
#1B0F2C #361F5A #522F87 #6E3FB4 #8E66CA

Accessibility & contrast

On white

9.93
#522F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#522F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F87
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F87#FFFFFF#000000##FFFFFF
##522F871.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#014285
Tritanopia (blue-blind)
#464356
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522f87;
/* rgb */ color: rgb(82, 47, 135);
/* oklch */ color: oklch(39.7% 0.141 298.0);
Tailwind
colors: {
  custom: {
    50: '#876aab',
    500: '#522f87',
    950: '#000000',
  },
}
SCSS
$custom: #522f87;
$custom-light: #876aab;
$custom-dark: #000000;
JSON
{
  "hex": "#522f87",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 263.864,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39747,
    "c": 0.14059,
    "h": 298
  },
  "luminance": 0.05576
}

Semantic roles & 50–950 ramp

primary
#522F87
secondary
#91B161
accent
#D850A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522F87

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

Preview Lab → · Contrast checker → · Palette generator →

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