#522D93#522D93

#522D93 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.158 H 295.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#522D93
RGBrgb(82, 45, 147)
HSLhsl(262, 53%, 38%)
HSVhsv(262, 69%, 58%)
CMYKcmyk(44.2%, 69.4%, 0%, 42.4%)
CIE-LABlab(28.84, 40.23, -50.17)
CIE-LCHlch(28.84, 64.31, 308.73°)
OKLaboklab(40.42% 0.0668 -0.1434)
OKLCHoklch(40.42% 0.158 295)
XYZxyz(9.6831, 5.7770, 28.2030)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D93 #6E932D
analogous
#2D3B93 #522D93 #852D93
triadic
#522D93 #93522D #2D9352
tetradic
#522D93 #932D3B #6E932D #2D9385
square
#522D93 #932D3B #6E932D #2D9385
split-complementary
#522D93 #93852D #3B932D
monochromatic
#1E1035 #381F64 #522D93 #6C3BC2 #8F69D1

Accessibility & contrast

On white

9.74
#522D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#522D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D93
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D93#FFFFFF#000000##FFFFFF
##522D931.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004596
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#40465C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522d93;
/* rgb */ color: rgb(82, 45, 147);
/* oklch */ color: oklch(40.4% 0.158 295.0);
Tailwind
colors: {
  custom: {
    50: '#8869b3',
    500: '#522d93',
    950: '#000000',
  },
}
SCSS
$custom: #522d93;
$custom-light: #8869b3;
$custom-dark: #000000;
JSON
{
  "hex": "#522d93",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 147
  },
  "hsl": {
    "h": 261.765,
    "s": 53.125,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4042,
    "c": 0.15824,
    "h": 295
  },
  "luminance": 0.05777
}

Semantic roles & 50–950 ramp

primary
#522D93
secondary
#99B864
accent
#DD4BA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522D93

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

Preview Lab → · Contrast checker → · Palette generator →

#522D93 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva