#522286#522286

#522286 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.157 H 301.0°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#522286
RGBrgb(82, 34, 134)
HSLhsl(269, 60%, 33%)
HSVhsv(269, 75%, 53%)
CMYKcmyk(38.8%, 74.6%, 0%, 47.5%)
CIE-LABlab(25.74, 42.39, -47.16)
CIE-LCHlch(25.74, 63.41, 311.95°)
OKLaboklab(37.88% 0.0807 -0.1345)
OKLCHoklch(37.88% 0.157 301)
XYZxyz(8.3537, 4.6591, 23.0088)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522286 #568622
analogous
#222486 #522286 #842286
triadic
#522286 #865222 #228652
tetradic
#522286 #862224 #568622 #228684
square
#522286 #862224 #568622 #228684
split-complementary
#522286 #868422 #248622
monochromatic
#160924 #341655 #522286 #702EB7 #8F50D3

Accessibility & contrast

On white

10.87
#522286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#522286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522286
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522286#FFFFFF#000000##FFFFFF
##5222861.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522286;
/* rgb */ color: rgb(82, 34, 134);
/* oklch */ color: oklch(37.9% 0.157 301.0);
Tailwind
colors: {
  custom: {
    50: '#8862aa',
    500: '#522286',
    950: '#000000',
  },
}
SCSS
$custom: #522286;
$custom-light: #8862aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522286",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 268.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.15689,
    "h": 301
  },
  "luminance": 0.04659
}

Semantic roles & 50–950 ramp

primary
#522286
secondary
#84B64E
accent
#E34597
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522286

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

Preview Lab → · Contrast checker → · Palette generator →

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