#522D8B#522D8B

#522D8B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.148 H 297.2°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#522D8B
RGBrgb(82, 45, 139)
HSLhsl(264, 51%, 36%)
HSVhsv(264, 68%, 55%)
CMYKcmyk(41%, 67.6%, 0%, 45.5%)
CIE-LABlab(28.21, 38.00, -46.27)
CIE-LCHlch(28.21, 59.87, 309.40°)
OKLaboklab(39.76% 0.0679 -0.132)
OKLCHoklch(39.76% 0.148 297.2)
XYZxyz(9.0771, 5.5345, 25.0111)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D8B #668B2D
analogous
#2D378B #522D8B #812D8B
triadic
#522D8B #8B522D #2D8B52
tetradic
#522D8B #8B2D37 #668B2D #2D8B81
square
#522D8B #8B2D37 #668B2D #2D8B81
split-complementary
#522D8B #8B812D #378B2D
monochromatic
#1B0F2F #371E5D #522D8B #6D3CB9 #8E65CD

Accessibility & contrast

On white

9.97
#522D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#522D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D8B
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D8B#FFFFFF#000000##FFFFFF
##522D8B1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#444358
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522d8b;
/* rgb */ color: rgb(82, 45, 139);
/* oklch */ color: oklch(39.8% 0.148 297.2);
Tailwind
colors: {
  custom: {
    50: '#8768ae',
    500: '#522d8b',
    950: '#000000',
  },
}
SCSS
$custom: #522d8b;
$custom-light: #8768ae;
$custom-dark: #000000;
JSON
{
  "hex": "#522d8b",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 263.617,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39764,
    "c": 0.14842,
    "h": 297.2
  },
  "luminance": 0.05535
}

Semantic roles & 50–950 ramp

primary
#522D8B
secondary
#93B460
accent
#DB4DA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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