#522F89#522F89

#522F89 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.143 H 297.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#522F89
RGBrgb(82, 47, 137)
HSLhsl(263, 49%, 36%)
HSVhsv(263, 66%, 54%)
CMYKcmyk(40.1%, 65.7%, 0%, 46.3%)
CIE-LABlab(28.47, 36.32, -44.61)
CIE-LCHlch(28.47, 57.52, 309.15°)
OKLaboklab(39.9% 0.0658 -0.1271)
OKLCHoklch(39.9% 0.143 297.4)
XYZxyz(9.0104, 5.6329, 24.2746)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F89 #66892F
analogous
#2F3989 #522F89 #7F2F89
triadic
#522F89 #89522F #2F8952
tetradic
#522F89 #892F39 #66892F #2F897F
square
#522F89 #892F39 #66892F #2F897F
split-complementary
#522F89 #897F2F #39892F
monochromatic
#1B102E #371F5B #522F89 #6D3FB7 #8E67CB

Accessibility & contrast

On white

9.87
#522F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#522F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F89
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F89#FFFFFF#000000##FFFFFF
##522F891.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#004287
Tritanopia (blue-blind)
#454357
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522f89;
/* rgb */ color: rgb(82, 47, 137);
/* oklch */ color: oklch(39.9% 0.143 297.4);
Tailwind
colors: {
  custom: {
    50: '#876aac',
    500: '#522f89',
    950: '#000000',
  },
}
SCSS
$custom: #522f89;
$custom-light: #876aac;
$custom-dark: #000000;
JSON
{
  "hex": "#522f89",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 263.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39903,
    "c": 0.14311,
    "h": 297.4
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#522F89
secondary
#93B262
accent
#D84FA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522F89

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

Preview Lab → · Contrast checker → · Palette generator →

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