#522B71#522B71

#522B71 is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.5% C 0.119 H 307.3°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#522B71
RGBrgb(82, 43, 113)
HSLhsl(273, 45%, 31%)
HSVhsv(273, 62%, 44%)
CMYKcmyk(27.4%, 61.9%, 0%, 55.7%)
CIE-LABlab(25.90, 32.15, -33.61)
CIE-LCHlch(25.90, 46.51, 313.73°)
OKLaboklab(37.5% 0.0722 -0.0948)
OKLCHoklch(37.5% 0.119 307.3)
XYZxyz(7.3236, 4.7139, 16.1437)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B71 #4A712B
analogous
#2F2B71 #522B71 #712B6D
triadic
#522B71 #71522B #2B7152
tetradic
#522B71 #712F2B #4A712B #2B6D71
square
#522B71 #712F2B #4A712B #2B6D71
split-complementary
#522B71 #6D712B #2B712F
monochromatic
#120918 #321A45 #522B71 #723C9D #9157BF

Accessibility & contrast

On white

10.81
#522B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#522B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B71
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B71#FFFFFF#000000##FFFFFF
##522B711.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C73
Deuteranopia (green-blind)
#203E6F
Tritanopia (blue-blind)
#4D3949
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522b71;
/* rgb */ color: rgb(82, 43, 113);
/* oklch */ color: oklch(37.5% 0.119 307.3);
Tailwind
colors: {
  custom: {
    50: '#85669a',
    500: '#522b71',
    950: '#000000',
  },
}
SCSS
$custom: #522b71;
$custom-light: #85669a;
$custom-dark: #000000;
JSON
{
  "hex": "#522b71",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 273.429,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37496,
    "c": 0.11912,
    "h": 307.3
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#522B71
secondary
#77A355
accent
#D5538D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522B71

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

Preview Lab → · Contrast checker → · Palette generator →

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