#522C7B#522C7B

#522C7B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.130 H 302.9°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#522C7B
RGBrgb(82, 44, 123)
HSLhsl(269, 47%, 33%)
HSVhsv(269, 64%, 48%)
CMYKcmyk(33.3%, 64.2%, 0%, 51.8%)
CIE-LABlab(26.81, 34.20, -38.52)
CIE-LCHlch(26.81, 51.51, 311.60°)
OKLaboklab(38.37% 0.0706 -0.1092)
OKLCHoklch(38.37% 0.13 302.9)
XYZxyz(7.9547, 5.0253, 19.2859)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C7B #557B2C
analogous
#2C2D7B #522C7B #792C7B
triadic
#522C7B #7B522C #2C7B52
tetradic
#522C7B #7B2C2D #557B2C #2C7B79
square
#522C7B #7B2C2D #557B2C #2C7B79
split-complementary
#522C7B #7B792C #2D7B2C
monochromatic
#160C21 #341C4E #522C7B #703CA8 #8F5DC5

Accessibility & contrast

On white

10.47
#522C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C7B
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C7B#FFFFFF#000000##FFFFFF
##522C7B1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#153F79
Tritanopia (blue-blind)
#4A3D4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522c7b;
/* rgb */ color: rgb(82, 44, 123);
/* oklch */ color: oklch(38.4% 0.130 302.9);
Tailwind
colors: {
  custom: {
    50: '#8667a2',
    500: '#522c7b',
    950: '#000000',
  },
}
SCSS
$custom: #522c7b;
$custom-light: #8667a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522c7b",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 268.861,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38374,
    "c": 0.13,
    "h": 302.9
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#522C7B
secondary
#83AB58
accent
#D75196
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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