#522D91#522D91

#522D91 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.156 H 295.5°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#522D91
RGBrgb(82, 45, 145)
HSLhsl(262, 53%, 37%)
HSVhsv(262, 69%, 57%)
CMYKcmyk(43.4%, 69%, 0%, 43.1%)
CIE-LABlab(28.68, 39.67, -49.21)
CIE-LCHlch(28.68, 63.21, 308.88°)
OKLaboklab(40.25% 0.0671 -0.1406)
OKLCHoklch(40.25% 0.156 295.5)
XYZxyz(9.5275, 5.7147, 27.3836)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D91 #6C912D
analogous
#2D3A91 #522D91 #842D91
triadic
#522D91 #91522D #2D9152
tetradic
#522D91 #912D3A #6C912D #2D9184
square
#522D91 #912D3A #6C912D #2D9184
split-complementary
#522D91 #91842D #3A912D
monochromatic
#1D1034 #381F62 #522D91 #6C3BC0 #8F68D0

Accessibility & contrast

On white

9.80
#522D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#522D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D91
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D91#FFFFFF#000000##FFFFFF
##522D911.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#41455B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522d91;
/* rgb */ color: rgb(82, 45, 145);
/* oklch */ color: oklch(40.3% 0.156 295.5);
Tailwind
colors: {
  custom: {
    50: '#8869b2',
    500: '#522d91',
    950: '#000000',
  },
}
SCSS
$custom: #522d91;
$custom-light: #8869b2;
$custom-dark: #000000;
JSON
{
  "hex": "#522d91",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 262.2,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40254,
    "c": 0.1558,
    "h": 295.5
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#522D91
secondary
#98B763
accent
#DC4CA7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522D91

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

Preview Lab → · Contrast checker → · Palette generator →

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