#522C71#522C71

#522C71 is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.7% C 0.117 H 307.1°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#522C71
RGBrgb(82, 44, 113)
HSLhsl(273, 44%, 31%)
HSVhsv(273, 61%, 44%)
CMYKcmyk(27.4%, 61.1%, 0%, 55.7%)
CIE-LABlab(26.12, 31.57, -33.26)
CIE-LCHlch(26.12, 45.85, 313.50°)
OKLaboklab(37.65% 0.0708 -0.0937)
OKLCHoklch(37.65% 0.117 307.1)
XYZxyz(7.3604, 4.7875, 16.1559)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C71 #4B712C
analogous
#2F2C71 #522C71 #712C6D
triadic
#522C71 #71522C #2C7152
tetradic
#522C71 #712F2C #4B712C #2C6D71
square
#522C71 #712F2C #4B712C #2C6D71
split-complementary
#522C71 #6D712C #2C712F
monochromatic
#120A19 #321B45 #522C71 #723D9D #9159BE

Accessibility & contrast

On white

10.73
#522C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#522C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C71
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C71#FFFFFF#000000##FFFFFF
##522C711.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C73
Deuteranopia (green-blind)
#213E6F
Tritanopia (blue-blind)
#4D394A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522c71;
/* rgb */ color: rgb(82, 44, 113);
/* oklch */ color: oklch(37.7% 0.117 307.1);
Tailwind
colors: {
  custom: {
    50: '#85679a',
    500: '#522c71',
    950: '#000000',
  },
}
SCSS
$custom: #522c71;
$custom-light: #85679a;
$custom-dark: #000000;
JSON
{
  "hex": "#522c71",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 273.043,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37654,
    "c": 0.11747,
    "h": 307.1
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#522C71
secondary
#79A356
accent
#D4548D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522C71

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

Preview Lab → · Contrast checker → · Palette generator →

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