#522170#522170

#522170 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.133 H 309.8°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#522170
RGBrgb(82, 33, 112)
HSLhsl(277, 54%, 28%)
HSVhsv(277, 71%, 44%)
CMYKcmyk(26.8%, 70.5%, 0%, 56.1%)
CIE-LABlab(23.84, 37.33, -36.28)
CIE-LCHlch(23.84, 52.05, 315.82°)
OKLaboklab(35.98% 0.0853 -0.1025)
OKLCHoklch(35.98% 0.133 309.8)
XYZxyz(6.9476, 4.0515, 15.7421)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522170 #3F7021
analogous
#2A2170 #522170 #702166
triadic
#522170 #705221 #217052
tetradic
#522170 #702A21 #3F7021 #216670
square
#522170 #702A21 #3F7021 #216670
split-complementary
#522170 #667021 #21702A
monochromatic
#110718 #2F1341 #522170 #752F9F #9644C8

Accessibility & contrast

On white

11.60
#522170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522170
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522170#FFFFFF#000000##FFFFFF
##5221701.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003772
Deuteranopia (green-blind)
#14396E
Tritanopia (blue-blind)
#4E3245
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522170;
/* rgb */ color: rgb(82, 33, 112);
/* oklch */ color: oklch(36.0% 0.133 309.8);
Tailwind
colors: {
  custom: {
    50: '#86609a',
    500: '#522170',
    950: '#000000',
  },
}
SCSS
$custom: #522170;
$custom-light: #86609a;
$custom-dark: #000000;
JSON
{
  "hex": "#522170",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 277.215,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.13341,
    "h": 309.8
  },
  "luminance": 0.04051
}

Semantic roles & 50–950 ramp

primary
#522170
secondary
#6CA449
accent
#DE4A82
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522170

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

Preview Lab → · Contrast checker → · Palette generator →

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