#522171#522171

#522171 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.135 H 309.3°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#522171
RGBrgb(82, 33, 113)
HSLhsl(277, 55%, 29%)
HSVhsv(277, 71%, 44%)
CMYKcmyk(27.4%, 70.8%, 0%, 55.7%)
CIE-LABlab(23.91, 37.57, -36.80)
CIE-LCHlch(23.91, 52.60, 315.59°)
OKLaboklab(36.06% 0.0852 -0.1041)
OKLCHoklch(36.06% 0.135 309.3)
XYZxyz(7.0036, 4.0739, 16.0370)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522171 #407121
analogous
#2A2171 #522171 #712168
triadic
#522171 #715221 #217152
tetradic
#522171 #712A21 #407121 #216871
square
#522171 #712A21 #407121 #216871
split-complementary
#522171 #687121 #21712A
monochromatic
#110718 #301342 #522171 #742FA0 #9544C8

Accessibility & contrast

On white

11.57
#522171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#522171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522171
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522171#FFFFFF#000000##FFFFFF
##5221711.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#133A6F
Tritanopia (blue-blind)
#4E3246
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522171;
/* rgb */ color: rgb(82, 33, 113);
/* oklch */ color: oklch(36.1% 0.135 309.3);
Tailwind
colors: {
  custom: {
    50: '#86609a',
    500: '#522171',
    950: '#000000',
  },
}
SCSS
$custom: #522171;
$custom-light: #86609a;
$custom-dark: #000000;
JSON
{
  "hex": "#522171",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 276.75,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36057,
    "c": 0.13454,
    "h": 309.3
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#522171
secondary
#6DA549
accent
#DE4A83
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522171

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

Preview Lab → · Contrast checker → · Palette generator →

#522171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva