#522D7B#522D7B

#522D7B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.128 H 302.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#522D7B
RGBrgb(82, 45, 123)
HSLhsl(268, 46%, 33%)
HSVhsv(268, 63%, 48%)
CMYKcmyk(33.3%, 63.4%, 0%, 51.8%)
CIE-LABlab(27.02, 33.62, -38.17)
CIE-LCHlch(27.02, 50.87, 311.37°)
OKLaboklab(38.53% 0.0693 -0.1082)
OKLCHoklch(38.53% 0.128 302.6)
XYZxyz(7.9924, 5.1007, 19.2985)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D7B #567B2D
analogous
#2D2F7B #522D7B #792D7B
triadic
#522D7B #7B522D #2D7B52
tetradic
#522D7B #7B2D2F #567B2D #2D7B79
square
#522D7B #7B2D2F #567B2D #2D7B79
split-complementary
#522D7B #7B792D #2F7B2D
monochromatic
#160C21 #341D4E #522D7B #703DA8 #8F5EC4

Accessibility & contrast

On white

10.40
#522D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D7B
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D7B#FFFFFF#000000##FFFFFF
##522D7B1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#174079
Tritanopia (blue-blind)
#4A3D4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522d7b;
/* rgb */ color: rgb(82, 45, 123);
/* oklch */ color: oklch(38.5% 0.128 302.6);
Tailwind
colors: {
  custom: {
    50: '#8668a2',
    500: '#522d7b',
    950: '#000000',
  },
}
SCSS
$custom: #522d7b;
$custom-light: #8668a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522d7b",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 268.462,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38529,
    "c": 0.12845,
    "h": 302.6
  },
  "luminance": 0.05101
}

Semantic roles & 50–950 ramp

primary
#522D7B
secondary
#84AB59
accent
#D65297
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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