#522090#522090

#522090 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.170 H 298.1°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#522090
RGBrgb(82, 32, 144)
HSLhsl(267, 64%, 35%)
HSVhsv(267, 78%, 56%)
CMYKcmyk(43.1%, 77.8%, 0%, 43.5%)
CIE-LABlab(26.27, 45.92, -52.51)
CIE-LCHlch(26.27, 69.76, 311.17°)
OKLaboklab(38.52% 0.0802 -0.1502)
OKLCHoklch(38.52% 0.17 298.1)
XYZxyz(9.0289, 4.8403, 26.8387)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522090 #5E9020
analogous
#202690 #522090 #8A2090
triadic
#522090 #905220 #209052
tetradic
#522090 #902026 #5E9020 #20908A
square
#522090 #902026 #5E9020 #20908A
split-complementary
#522090 #908A20 #269020
monochromatic
#190A2C #35155E #522090 #6F2BC2 #8E52D9

Accessibility & contrast

On white

10.67
#522090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522090
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522090#FFFFFF#000000##FFFFFF
##5220901.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#003D8E
Tritanopia (blue-blind)
#423E57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522090;
/* rgb */ color: rgb(82, 32, 144);
/* oklch */ color: oklch(38.5% 0.170 298.1);
Tailwind
colors: {
  custom: {
    50: '#8961b1',
    500: '#522090',
    950: '#000000',
  },
}
SCSS
$custom: #522090;
$custom-light: #8961b1;
$custom-dark: #000000;
JSON
{
  "hex": "#522090",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 266.786,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38521,
    "c": 0.1703,
    "h": 298.1
  },
  "luminance": 0.0484
}

Semantic roles & 50–950 ramp

primary
#522090
secondary
#8CBC50
accent
#E7419D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522090

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

Preview Lab → · Contrast checker → · Palette generator →

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