#522487#522487

#522487 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.156 H 300.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#522487
RGBrgb(82, 36, 135)
HSLhsl(268, 58%, 34%)
HSVhsv(268, 73%, 53%)
CMYKcmyk(39.3%, 73.3%, 0%, 47.1%)
CIE-LABlab(26.17, 41.67, -47.08)
CIE-LCHlch(26.17, 62.88, 311.51°)
OKLaboklab(38.21% 0.0785 -0.1343)
OKLCHoklch(38.21% 0.156 300.3)
XYZxyz(8.4826, 4.8048, 23.3975)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522487 #598724
analogous
#242787 #522487 #832487
triadic
#522487 #875224 #248752
tetradic
#522487 #872427 #598724 #248783
square
#522487 #872427 #598724 #248783
split-complementary
#522487 #878324 #278724
monochromatic
#170A26 #351757 #522487 #6F31B7 #8E54D1

Accessibility & contrast

On white

10.71
#522487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#522487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522487
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522487#FFFFFF#000000##FFFFFF
##5224871.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#463C53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522487;
/* rgb */ color: rgb(82, 36, 135);
/* oklch */ color: oklch(38.2% 0.156 300.3);
Tailwind
colors: {
  custom: {
    50: '#8863ab',
    500: '#522487',
    950: '#000000',
  },
}
SCSS
$custom: #522487;
$custom-light: #8863ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522487",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 267.879,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38208,
    "c": 0.15556,
    "h": 300.3
  },
  "luminance": 0.04805
}

Semantic roles & 50–950 ramp

primary
#522487
secondary
#87B551
accent
#E14799
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522487

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

Preview Lab → · Contrast checker → · Palette generator →

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