#522186#522186

#522186 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.158 H 301.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#522186
RGBrgb(82, 33, 134)
HSLhsl(269, 60%, 33%)
HSVhsv(269, 75%, 53%)
CMYKcmyk(38.8%, 75.4%, 0%, 47.5%)
CIE-LABlab(25.57, 42.87, -47.44)
CIE-LCHlch(25.57, 63.94, 312.11°)
OKLaboklab(37.76% 0.0817 -0.1353)
OKLCHoklch(37.76% 0.158 301.1)
XYZxyz(8.3256, 4.6027, 22.9994)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522186 #558621
analogous
#212286 #522186 #842186
triadic
#522186 #865221 #218652
tetradic
#522186 #862122 #558621 #218684
square
#522186 #862122 #558621 #218684
split-complementary
#522186 #868421 #228621
monochromatic
#160924 #341555 #522186 #702DB7 #8F4ED3

Accessibility & contrast

On white

10.93
#522186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522186
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522186#FFFFFF#000000##FFFFFF
##5221861.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#473A52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522186;
/* rgb */ color: rgb(82, 33, 134);
/* oklch */ color: oklch(37.8% 0.158 301.1);
Tailwind
colors: {
  custom: {
    50: '#8861aa',
    500: '#522186',
    950: '#000000',
  },
}
SCSS
$custom: #522186;
$custom-light: #8861aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522186",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 269.109,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37758,
    "c": 0.1581,
    "h": 301.1
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#522186
secondary
#83B74C
accent
#E44496
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522186

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

Preview Lab → · Contrast checker → · Palette generator →

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