#522087#522087

#522087 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.160 H 300.9°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#522087
RGBrgb(82, 32, 135)
HSLhsl(269, 62%, 33%)
HSVhsv(269, 76%, 53%)
CMYKcmyk(39.3%, 76.3%, 0%, 47.1%)
CIE-LABlab(25.49, 43.59, -48.19)
CIE-LCHlch(25.49, 64.98, 312.13°)
OKLaboklab(37.73% 0.0825 -0.1375)
OKLCHoklch(37.73% 0.16 300.9)
XYZxyz(8.3683, 4.5761, 23.3594)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522087 #558720
analogous
#202187 #522087 #852087
triadic
#522087 #875220 #208752
tetradic
#522087 #872021 #558720 #208785
square
#522087 #872021 #558720 #208785
split-complementary
#522087 #878520 #218720
monochromatic
#160924 #341456 #522087 #702CB8 #8F4DD5

Accessibility & contrast

On white

10.96
#522087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#522087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522087
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522087#FFFFFF#000000##FFFFFF
##5220871.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#463A52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522087;
/* rgb */ color: rgb(82, 32, 135);
/* oklch */ color: oklch(37.7% 0.160 300.9);
Tailwind
colors: {
  custom: {
    50: '#8861ab',
    500: '#522087',
    950: '#000000',
  },
}
SCSS
$custom: #522087;
$custom-light: #8861ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522087",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 269.126,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37727,
    "c": 0.16038,
    "h": 300.9
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

primary
#522087
secondary
#83B84B
accent
#E54396
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522087

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

Preview Lab → · Contrast checker → · Palette generator →

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