#522292#522292

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

Color values

HEX#522292
RGBrgb(82, 34, 146)
HSLhsl(266, 62%, 35%)
HSVhsv(266, 77%, 57%)
CMYKcmyk(43.8%, 76.7%, 0%, 42.7%)
CIE-LABlab(26.77, 45.53, -52.94)
CIE-LCHlch(26.77, 69.82, 310.70°)
OKLaboklab(38.92% 0.0779 -0.1515)
OKLCHoklch(38.92% 0.17 297.2)
XYZxyz(9.2387, 5.0130, 27.6694)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522292 #629222
analogous
#222A92 #522292 #8A2292
triadic
#522292 #925222 #229252
tetradic
#522292 #92222A #629222 #22928A
square
#522292 #92222A #629222 #22928A
split-complementary
#522292 #928A22 #2A9222
monochromatic
#1A0B2F #361660 #522292 #6E2EC4 #8E57D8

Accessibility & contrast

On white

10.49
#522292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522292
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522292#FFFFFF#000000##FFFFFF
##5222921.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522292;
/* rgb */ color: rgb(82, 34, 146);
/* oklch */ color: oklch(38.9% 0.170 297.2);
Tailwind
colors: {
  custom: {
    50: '#8962b3',
    500: '#522292',
    950: '#000000',
  },
}
SCSS
$custom: #522292;
$custom-light: #8962b3;
$custom-dark: #000000;
JSON
{
  "hex": "#522292",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 265.714,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38925,
    "c": 0.17035,
    "h": 297.2
  },
  "luminance": 0.05013
}

Semantic roles & 50–950 ramp

primary
#522292
secondary
#8FBC54
accent
#E543A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522292

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

Preview Lab → · Contrast checker → · Palette generator →

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