#522E7D#522E7D

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

Color values

HEX#522E7D
RGBrgb(82, 46, 125)
HSLhsl(267, 46%, 34%)
HSVhsv(267, 63%, 49%)
CMYKcmyk(34.4%, 63.2%, 0%, 51%)
CIE-LABlab(27.38, 33.59, -38.86)
CIE-LCHlch(27.38, 51.36, 310.84°)
OKLaboklab(38.83% 0.0679 -0.1102)
OKLCHoklch(38.83% 0.129 301.6)
XYZxyz(8.1575, 5.2285, 19.9775)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E7D #597D2E
analogous
#2E317D #522E7D #792E7D
triadic
#522E7D #7D522E #2E7D52
tetradic
#522E7D #7D2E31 #597D2E #2E7D79
square
#522E7D #7D2E31 #597D2E #2E7D79
split-complementary
#522E7D #7D792E #317D2E
monochromatic
#170D24 #351E50 #522E7D #6F3EAA #8E61C5

Accessibility & contrast

On white

10.27
#522E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E7D
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E7D#FFFFFF#000000##FFFFFF
##522E7D1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#15407B
Tritanopia (blue-blind)
#493F51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522e7d;
/* rgb */ color: rgb(82, 46, 125);
/* oklch */ color: oklch(38.8% 0.129 301.6);
Tailwind
colors: {
  custom: {
    50: '#8669a3',
    500: '#522e7d',
    950: '#000000',
  },
}
SCSS
$custom: #522e7d;
$custom-light: #8669a3;
$custom-dark: #000000;
JSON
{
  "hex": "#522e7d",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 267.342,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38833,
    "c": 0.12942,
    "h": 301.6
  },
  "luminance": 0.05228
}

Semantic roles & 50–950 ramp

primary
#522E7D
secondary
#87AB5B
accent
#D6529A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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