#522D7E#522D7E

#522D7E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.132 H 301.5°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#522D7E
RGBrgb(82, 45, 126)
HSLhsl(267, 47%, 34%)
HSVhsv(267, 64%, 49%)
CMYKcmyk(34.9%, 64.3%, 0%, 50.6%)
CIE-LABlab(27.23, 34.43, -39.72)
CIE-LCHlch(27.23, 52.57, 310.92°)
OKLaboklab(38.75% 0.0691 -0.1127)
OKLCHoklch(38.75% 0.132 301.5)
XYZxyz(8.1831, 5.1769, 20.3028)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D7E #597E2D
analogous
#2D317E #522D7E #7A2D7E
triadic
#522D7E #7E522D #2D7E52
tetradic
#522D7E #7E2D31 #597E2D #2D7E7A
square
#522D7E #7E2D31 #597E2D #2D7E7A
split-complementary
#522D7E #7E7A2D #317E2D
monochromatic
#170D24 #351D51 #522D7E #6F3DAB #8E5FC6

Accessibility & contrast

On white

10.32
#522D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D7E
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D7E#FFFFFF#000000##FFFFFF
##522D7E1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#12407C
Tritanopia (blue-blind)
#493E51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522d7e;
/* rgb */ color: rgb(82, 45, 126);
/* oklch */ color: oklch(38.8% 0.132 301.5);
Tailwind
colors: {
  custom: {
    50: '#8668a4',
    500: '#522d7e',
    950: '#000000',
  },
}
SCSS
$custom: #522d7e;
$custom-light: #8668a4;
$custom-dark: #000000;
JSON
{
  "hex": "#522d7e",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 267.407,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38752,
    "c": 0.13222,
    "h": 301.5
  },
  "luminance": 0.05177
}

Semantic roles & 50–950 ramp

primary
#522D7E
secondary
#87AC5A
accent
#D7519A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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