#522786#522786

#522786 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.151 H 300.1°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#522786
RGBrgb(82, 39, 134)
HSLhsl(267, 55%, 34%)
HSVhsv(267, 71%, 53%)
CMYKcmyk(38.8%, 70.9%, 0%, 47.5%)
CIE-LABlab(26.64, 39.88, -45.70)
CIE-LCHlch(26.64, 60.65, 311.11°)
OKLaboklab(38.52% 0.0754 -0.1303)
OKLCHoklch(38.52% 0.151 300.1)
XYZxyz(8.5072, 4.9660, 23.0600)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522786 #5B8627
analogous
#272C86 #522786 #822786
triadic
#522786 #865227 #278652
tetradic
#522786 #86272C #5B8627 #278682
square
#522786 #86272C #5B8627 #278682
split-complementary
#522786 #868227 #2C8627
monochromatic
#180B27 #351957 #522786 #6F35B5 #8E59CF

Accessibility & contrast

On white

10.54
#522786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#522786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522786
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522786#FFFFFF#000000##FFFFFF
##5227861.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#463E53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522786;
/* rgb */ color: rgb(82, 39, 134);
/* oklch */ color: oklch(38.5% 0.151 300.1);
Tailwind
colors: {
  custom: {
    50: '#8765aa',
    500: '#522786',
    950: '#000000',
  },
}
SCSS
$custom: #522786;
$custom-light: #8765aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522786",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 267.158,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38515,
    "c": 0.15052,
    "h": 300.1
  },
  "luminance": 0.04966
}

Semantic roles & 50–950 ramp

primary
#522786
secondary
#89B455
accent
#DE4A9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522786

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

Preview Lab → · Contrast checker → · Palette generator →

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