#522A87#522A87

#522A87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.148 H 299.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#522A87
RGBrgb(82, 42, 135)
HSLhsl(266, 53%, 35%)
HSVhsv(266, 69%, 53%)
CMYKcmyk(39.3%, 68.9%, 0%, 47.1%)
CIE-LABlab(27.29, 38.55, -45.26)
CIE-LCHlch(27.29, 59.45, 310.42°)
OKLaboklab(39.01% 0.0719 -0.129)
OKLCHoklch(39.01% 0.148 299.1)
XYZxyz(8.6797, 5.1989, 23.4632)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A87 #5F872A
analogous
#2A3187 #522A87 #802A87
triadic
#522A87 #87522A #2A8752
tetradic
#522A87 #872A31 #5F872A #2A8780
square
#522A87 #872A31 #5F872A #2A8780
split-complementary
#522A87 #87802A #31872A
monochromatic
#190D2A #361B58 #522A87 #6E39B6 #8E5ECD

Accessibility & contrast

On white

10.30
#522A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A87
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A87#FFFFFF#000000##FFFFFF
##522A871.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522a87;
/* rgb */ color: rgb(82, 42, 135);
/* oklch */ color: oklch(39.0% 0.148 299.1);
Tailwind
colors: {
  custom: {
    50: '#8766ab',
    500: '#522a87',
    950: '#000000',
  },
}
SCSS
$custom: #522a87;
$custom-light: #8766ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522a87",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 265.806,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3901,
    "c": 0.14767,
    "h": 299.1
  },
  "luminance": 0.05199
}

Semantic roles & 50–950 ramp

primary
#522A87
secondary
#8DB35A
accent
#DC4C9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A87

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

Preview Lab → · Contrast checker → · Palette generator →

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