#522B87#522B87

#522B87 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.146 H 298.9°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#522B87
RGBrgb(82, 43, 135)
HSLhsl(265, 52%, 35%)
HSVhsv(265, 68%, 53%)
CMYKcmyk(39.3%, 68.1%, 0%, 47.1%)
CIE-LABlab(27.49, 38.00, -44.94)
CIE-LCHlch(27.49, 58.85, 310.22°)
OKLaboklab(39.15% 0.0707 -0.128)
OKLCHoklch(39.15% 0.146 298.9)
XYZxyz(8.7156, 5.2708, 23.4751)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B87 #60872B
analogous
#2B3287 #522B87 #802B87
triadic
#522B87 #87522B #2B8752
tetradic
#522B87 #872B32 #60872B #2B8780
square
#522B87 #872B32 #60872B #2B8780
split-complementary
#522B87 #87802B #32872B
monochromatic
#1A0D2A #361C59 #522B87 #6E3AB5 #8E60CC

Accessibility & contrast

On white

10.22
#522B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B87
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B87#FFFFFF#000000##FFFFFF
##522B871.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#464055
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522b87;
/* rgb */ color: rgb(82, 43, 135);
/* oklch */ color: oklch(39.2% 0.146 298.9);
Tailwind
colors: {
  custom: {
    50: '#8767ab',
    500: '#522b87',
    950: '#000000',
  },
}
SCSS
$custom: #522b87;
$custom-light: #8767ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522b87",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 265.435,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39152,
    "c": 0.14629,
    "h": 298.9
  },
  "luminance": 0.05271
}

Semantic roles & 50–950 ramp

primary
#522B87
secondary
#8EB25B
accent
#DB4D9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522B87

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

Preview Lab → · Contrast checker → · Palette generator →

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