#522D72#522D72

#522D72 is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.9% C 0.117 H 306.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#522D72
RGBrgb(82, 45, 114)
HSLhsl(272, 43%, 31%)
HSVhsv(272, 61%, 45%)
CMYKcmyk(28.1%, 60.5%, 0%, 55.3%)
CIE-LABlab(26.41, 31.24, -33.44)
CIE-LCHlch(26.41, 45.76, 313.05°)
OKLaboklab(37.89% 0.0694 -0.0943)
OKLCHoklch(37.89% 0.117 306.4)
XYZxyz(7.4547, 4.8856, 16.4666)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D72 #4D722D
analogous
#2F2D72 #522D72 #722D6F
triadic
#522D72 #72522D #2D7252
tetradic
#522D72 #722F2D #4D722D #2D6F72
square
#522D72 #722F2D #4D722D #2D6F72
split-complementary
#522D72 #6F722D #2D722F
monochromatic
#130A1A #321C46 #522D72 #723E9E #905BBE

Accessibility & contrast

On white

10.62
#522D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#522D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D72
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D72#FFFFFF#000000##FFFFFF
##522D721.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D74
Deuteranopia (green-blind)
#213F70
Tritanopia (blue-blind)
#4D3A4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522d72;
/* rgb */ color: rgb(82, 45, 114);
/* oklch */ color: oklch(37.9% 0.117 306.4);
Tailwind
colors: {
  custom: {
    50: '#85689b',
    500: '#522d72',
    950: '#000000',
  },
}
SCSS
$custom: #522d72;
$custom-light: #85689b;
$custom-dark: #000000;
JSON
{
  "hex": "#522d72",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 272.174,
    "s": 43.396,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37885,
    "c": 0.11706,
    "h": 306.4
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#522D72
secondary
#7BA357
accent
#D3558F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522D72

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

Preview Lab → · Contrast checker → · Palette generator →

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