#522193#522193

#522193 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.173 H 297.1°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#522193
RGBrgb(82, 33, 147)
HSLhsl(266, 63%, 35%)
HSVhsv(266, 78%, 58%)
CMYKcmyk(44.2%, 77.6%, 0%, 42.4%)
CIE-LABlab(26.70, 46.25, -53.67)
CIE-LCHlch(26.70, 70.85, 310.76°)
OKLaboklab(38.9% 0.0785 -0.1536)
OKLCHoklch(38.9% 0.173 297.1)
XYZxyz(9.2886, 4.9879, 28.0715)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522193 #629321
analogous
#212993 #522193 #8B2193
triadic
#522193 #935221 #219352
tetradic
#522193 #932129 #629321 #21938B
square
#522193 #932129 #629321 #21938B
split-complementary
#522193 #938B21 #299321
monochromatic
#1A0B2F #361661 #522193 #6E2CC5 #8E55D9

Accessibility & contrast

On white

10.51
#522193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522193
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522193#FFFFFF#000000##FFFFFF
##5221931.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003E91
Tritanopia (blue-blind)
#414059
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522193;
/* rgb */ color: rgb(82, 33, 147);
/* oklch */ color: oklch(38.9% 0.173 297.1);
Tailwind
colors: {
  custom: {
    50: '#8962b4',
    500: '#522193',
    950: '#000000',
  },
}
SCSS
$custom: #522193;
$custom-light: #8962b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522193",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 265.789,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38902,
    "c": 0.17254,
    "h": 297.1
  },
  "luminance": 0.04988
}

Semantic roles & 50–950 ramp

primary
#522193
secondary
#8FBD53
accent
#E6419F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522193

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

Preview Lab → · Contrast checker → · Palette generator →

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