#522C7F#522C7F

#522C7F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.135 H 301.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#522C7F
RGBrgb(82, 44, 127)
HSLhsl(267, 49%, 34%)
HSVhsv(267, 65%, 50%)
CMYKcmyk(35.4%, 65.4%, 0%, 50.2%)
CIE-LABlab(27.09, 35.27, -40.57)
CIE-LCHlch(27.09, 53.76, 311.00°)
OKLaboklab(38.67% 0.0703 -0.1152)
OKLCHoklch(38.67% 0.135 301.4)
XYZxyz(8.2102, 5.1275, 20.6317)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C7F #597F2C
analogous
#2C2F7F #522C7F #7B2C7F
triadic
#522C7F #7F522C #2C7F52
tetradic
#522C7F #7F2C2F #597F2C #2C7F7B
square
#522C7F #7F2C2F #597F2C #2C7F7B
split-complementary
#522C7F #7F7B2C #2F7F2C
monochromatic
#170D24 #351C52 #522C7F #6F3CAC #8E5EC7

Accessibility & contrast

On white

10.37
#522C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C7F
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C7F#FFFFFF#000000##FFFFFF
##522C7F1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#0E407D
Tritanopia (blue-blind)
#493E51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522c7f;
/* rgb */ color: rgb(82, 44, 127);
/* oklch */ color: oklch(38.7% 0.135 301.4);
Tailwind
colors: {
  custom: {
    50: '#8667a5',
    500: '#522c7f',
    950: '#000000',
  },
}
SCSS
$custom: #522c7f;
$custom-light: #8667a5;
$custom-dark: #000000;
JSON
{
  "hex": "#522c7f",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 267.47,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38675,
    "c": 0.13498,
    "h": 301.4
  },
  "luminance": 0.05128
}

Semantic roles & 50–950 ramp

primary
#522C7F
secondary
#87AD59
accent
#D8509A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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