#522886#522886

#522886 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.149 H 299.9°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#522886
RGBrgb(82, 40, 134)
HSLhsl(267, 54%, 34%)
HSVhsv(267, 70%, 53%)
CMYKcmyk(38.8%, 70.1%, 0%, 47.5%)
CIE-LABlab(26.83, 39.35, -45.39)
CIE-LCHlch(26.83, 60.07, 310.92°)
OKLaboklab(38.65% 0.0743 -0.1294)
OKLCHoklch(38.65% 0.149 299.9)
XYZxyz(8.5405, 5.0326, 23.0711)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522886 #5C8628
analogous
#282D86 #522886 #812886
triadic
#522886 #865228 #288652
tetradic
#522886 #86282D #5C8628 #288681
square
#522886 #86282D #5C8628 #288681
split-complementary
#522886 #868128 #2D8628
monochromatic
#180C28 #351A57 #522886 #6F36B5 #8E5BCE

Accessibility & contrast

On white

10.47
#522886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522886
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522886#FFFFFF#000000##FFFFFF
##5228861.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522886;
/* rgb */ color: rgb(82, 40, 134);
/* oklch */ color: oklch(38.7% 0.149 299.9);
Tailwind
colors: {
  custom: {
    50: '#8765aa',
    500: '#522886',
    950: '#000000',
  },
}
SCSS
$custom: #522886;
$custom-light: #8765aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522886",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 266.809,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38651,
    "c": 0.14919,
    "h": 299.9
  },
  "luminance": 0.05033
}

Semantic roles & 50–950 ramp

primary
#522886
secondary
#8AB357
accent
#DD4A9C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522886

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

Preview Lab → · Contrast checker → · Palette generator →

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