#522589#522589

#522589 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.157 H 299.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#522589
RGBrgb(82, 37, 137)
HSLhsl(267, 57%, 34%)
HSVhsv(267, 73%, 54%)
CMYKcmyk(40.1%, 73%, 0%, 46.3%)
CIE-LABlab(26.51, 41.70, -47.77)
CIE-LCHlch(26.51, 63.41, 311.12°)
OKLaboklab(38.5% 0.077 -0.1364)
OKLCHoklch(38.5% 0.157 299.5)
XYZxyz(8.6555, 4.9230, 24.1563)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522589 #5C8925
analogous
#252A89 #522589 #842589
triadic
#522589 #895225 #258952
tetradic
#522589 #89252A #5C8925 #258984
square
#522589 #89252A #5C8925 #258984
split-complementary
#522589 #898425 #2A8925
monochromatic
#180B29 #351859 #522589 #6F32B9 #8E57D2

Accessibility & contrast

On white

10.58
#522589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#522589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522589
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522589#FFFFFF#000000##FFFFFF
##5225891.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#453E54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522589;
/* rgb */ color: rgb(82, 37, 137);
/* oklch */ color: oklch(38.5% 0.157 299.5);
Tailwind
colors: {
  custom: {
    50: '#8864ac',
    500: '#522589',
    950: '#000000',
  },
}
SCSS
$custom: #522589;
$custom-light: #8864ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522589",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 137
  },
  "hsl": {
    "h": 267,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38504,
    "c": 0.15661,
    "h": 299.5
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

primary
#522589
secondary
#8AB654
accent
#E1479C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522589

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

Preview Lab → · Contrast checker → · Palette generator →

#522589 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva