#522189#522189

#522189 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.161 H 300.1°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#522189
RGBrgb(82, 33, 137)
HSLhsl(268, 61%, 33%)
HSVhsv(268, 76%, 54%)
CMYKcmyk(40.1%, 75.9%, 0%, 46.3%)
CIE-LABlab(25.83, 43.64, -48.90)
CIE-LCHlch(25.83, 65.54, 311.75°)
OKLaboklab(38.02% 0.081 -0.1396)
OKLCHoklch(38.02% 0.161 300.1)
XYZxyz(8.5378, 4.6876, 24.1170)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522189 #588921
analogous
#212489 #522189 #862189
triadic
#522189 #895221 #218952
tetradic
#522189 #892124 #588921 #218986
square
#522189 #892124 #588921 #218986
split-complementary
#522189 #898621 #248921
monochromatic
#170926 #341558 #522189 #702DBA #8E50D5

Accessibility & contrast

On white

10.84
#522189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#522189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522189
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522189#FFFFFF#000000##FFFFFF
##5221891.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#453C53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522189;
/* rgb */ color: rgb(82, 33, 137);
/* oklch */ color: oklch(38.0% 0.161 300.1);
Tailwind
colors: {
  custom: {
    50: '#8861ac',
    500: '#522189',
    950: '#000000',
  },
}
SCSS
$custom: #522189;
$custom-light: #8861ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522189",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 268.269,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38016,
    "c": 0.16144,
    "h": 300.1
  },
  "luminance": 0.04688
}

Semantic roles & 50–950 ramp

primary
#522189
secondary
#86B84E
accent
#E44499
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522189

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

Preview Lab → · Contrast checker → · Palette generator →

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