#522E71#522E71

#522E71 is a dark, moderate violet. Relative luminance 0.049; OKLCH L 38.0% C 0.114 H 306.5°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#522E71
RGBrgb(82, 46, 113)
HSLhsl(272, 42%, 31%)
HSVhsv(272, 59%, 44%)
CMYKcmyk(27.4%, 59.3%, 0%, 55.7%)
CIE-LABlab(26.56, 30.39, -32.55)
CIE-LCHlch(26.56, 44.53, 313.03°)
OKLaboklab(37.98% 0.068 -0.0917)
OKLCHoklch(37.98% 0.114 306.5)
XYZxyz(7.4367, 4.9402, 16.1814)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E71 #4D712E
analogous
#302E71 #522E71 #712E6E
triadic
#522E71 #71522E #2E7152
tetradic
#522E71 #71302E #4D712E #2E6E71
square
#522E71 #71302E #4D712E #2E6E71
split-complementary
#522E71 #6E712E #2E7130
monochromatic
#130B1A #321C46 #522E71 #72409C #905DBD

Accessibility & contrast

On white

10.56
#522E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#522E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E71
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E71#FFFFFF#000000##FFFFFF
##522E711.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E73
Deuteranopia (green-blind)
#233F6F
Tritanopia (blue-blind)
#4D3B4B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522e71;
/* rgb */ color: rgb(82, 46, 113);
/* oklch */ color: oklch(38.0% 0.114 306.5);
Tailwind
colors: {
  custom: {
    50: '#85689a',
    500: '#522e71',
    950: '#000000',
  },
}
SCSS
$custom: #522e71;
$custom-light: #85689a;
$custom-dark: #000000;
JSON
{
  "hex": "#522e71",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 272.239,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37979,
    "c": 0.11412,
    "h": 306.5
  },
  "luminance": 0.0494
}

Semantic roles & 50–950 ramp

primary
#522E71
secondary
#7BA258
accent
#D2568F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522E71

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

Preview Lab → · Contrast checker → · Palette generator →

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