#522686#522686

#522686 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.152 H 300.3°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#522686
RGBrgb(82, 38, 134)
HSLhsl(268, 56%, 34%)
HSVhsv(268, 72%, 53%)
CMYKcmyk(38.8%, 71.6%, 0%, 47.5%)
CIE-LABlab(26.45, 40.39, -46.00)
CIE-LCHlch(26.45, 61.22, 311.29°)
OKLaboklab(38.38% 0.0765 -0.1312)
OKLCHoklch(38.38% 0.152 300.3)
XYZxyz(8.4748, 4.9012, 23.0492)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522686 #5A8626
analogous
#262A86 #522686 #822686
triadic
#522686 #865226 #268652
tetradic
#522686 #86262A #5A8626 #268682
square
#522686 #86262A #5A8626 #268682
split-complementary
#522686 #868226 #2A8626
monochromatic
#180B27 #351856 #522686 #6F34B6 #8E57CF

Accessibility & contrast

On white

10.60
#522686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#522686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522686
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522686#FFFFFF#000000##FFFFFF
##5226861.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522686;
/* rgb */ color: rgb(82, 38, 134);
/* oklch */ color: oklch(38.4% 0.152 300.3);
Tailwind
colors: {
  custom: {
    50: '#8764aa',
    500: '#522686',
    950: '#000000',
  },
}
SCSS
$custom: #522686;
$custom-light: #8764aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522686",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 134
  },
  "hsl": {
    "h": 267.5,
    "s": 55.814,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38382,
    "c": 0.15184,
    "h": 300.3
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#522686
secondary
#88B454
accent
#DF499A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522686

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

Preview Lab → · Contrast checker → · Palette generator →

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