#522486#522486

#522486 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.154 H 300.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#522486
RGBrgb(82, 36, 134)
HSLhsl(268, 58%, 33%)
HSVhsv(268, 73%, 53%)
CMYKcmyk(38.8%, 73.1%, 0%, 47.5%)
CIE-LABlab(26.09, 41.41, -46.59)
CIE-LCHlch(26.09, 62.33, 311.63°)
OKLaboklab(38.12% 0.0787 -0.1329)
OKLCHoklch(38.12% 0.154 300.6)
XYZxyz(8.4126, 4.7768, 23.0284)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522486 #588624
analogous
#242786 #522486 #832486
triadic
#522486 #865224 #248652
tetradic
#522486 #862427 #588624 #248683
square
#522486 #862427 #588624 #248683
split-complementary
#522486 #868324 #278624
monochromatic
#170A26 #341756 #522486 #7031B6 #8E53D1

Accessibility & contrast

On white

10.74
#522486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522486
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522486#FFFFFF#000000##FFFFFF
##5224861.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#463C52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522486;
/* rgb */ color: rgb(82, 36, 134);
/* oklch */ color: oklch(38.1% 0.154 300.6);
Tailwind
colors: {
  custom: {
    50: '#8863aa',
    500: '#522486',
    950: '#000000',
  },
}
SCSS
$custom: #522486;
$custom-light: #8863aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522486",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 268.163,
    "s": 57.647,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38124,
    "c": 0.15441,
    "h": 300.6
  },
  "luminance": 0.04777
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522486

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

Preview Lab → · Contrast checker → · Palette generator →

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