#522188#522188

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

Color values

HEX#522188
RGBrgb(82, 33, 136)
HSLhsl(269, 61%, 33%)
HSVhsv(269, 76%, 53%)
CMYKcmyk(39.7%, 75.7%, 0%, 46.7%)
CIE-LABlab(25.74, 43.38, -48.41)
CIE-LCHlch(25.74, 65.01, 311.87°)
OKLaboklab(37.93% 0.0813 -0.1382)
OKLCHoklch(37.93% 0.16 300.5)
XYZxyz(8.4664, 4.6591, 23.7410)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522188 #578821
analogous
#212388 #522188 #852188
triadic
#522188 #885221 #218852
tetradic
#522188 #882123 #578821 #218885
square
#522188 #882123 #578821 #218885
split-complementary
#522188 #888521 #238821
monochromatic
#170925 #341557 #522188 #702DB9 #8E4FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522188#FFFFFF#000000##FFFFFF
##5221881.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)
#003D8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#463B53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522188;
/* rgb */ color: rgb(82, 33, 136);
/* oklch */ color: oklch(37.9% 0.160 300.5);
Tailwind
colors: {
  custom: {
    50: '#8861ac',
    500: '#522188',
    950: '#000000',
  },
}
SCSS
$custom: #522188;
$custom-light: #8861ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522188",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 268.544,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3793,
    "c": 0.16033,
    "h": 300.5
  },
  "luminance": 0.04659
}

Semantic roles & 50–950 ramp

primary
#522188
secondary
#85B84D
accent
#E44498
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522188

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

Preview Lab → · Contrast checker → · Palette generator →

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