#522070#522070

#522070 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.135 H 309.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#522070
RGBrgb(82, 32, 112)
HSLhsl(278, 56%, 28%)
HSVhsv(278, 71%, 44%)
CMYKcmyk(26.8%, 71.4%, 0%, 56.1%)
CIE-LABlab(23.66, 37.83, -36.57)
CIE-LCHlch(23.66, 52.62, 315.97°)
OKLaboklab(35.85% 0.0866 -0.1034)
OKLCHoklch(35.85% 0.135 309.9)
XYZxyz(6.9202, 3.9969, 15.7330)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522070 #3E7020
analogous
#2A2070 #522070 #702066
triadic
#522070 #705220 #207052
tetradic
#522070 #702A20 #3E7020 #206670
square
#522070 #702A20 #3E7020 #206670
split-complementary
#522070 #667020 #20702A
monochromatic
#110718 #2F1240 #522070 #752EA0 #9642C9

Accessibility & contrast

On white

11.67
#522070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#522070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522070
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522070#FFFFFF#000000##FFFFFF
##5220701.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#13396E
Tritanopia (blue-blind)
#4E3145
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #522070;
/* rgb */ color: rgb(82, 32, 112);
/* oklch */ color: oklch(35.9% 0.135 309.9);
Tailwind
colors: {
  custom: {
    50: '#86609a',
    500: '#522070',
    950: '#000000',
  },
}
SCSS
$custom: #522070;
$custom-light: #86609a;
$custom-dark: #000000;
JSON
{
  "hex": "#522070",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 112
  },
  "hsl": {
    "h": 277.5,
    "s": 55.556,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35852,
    "c": 0.13483,
    "h": 309.9
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#522070
secondary
#6AA448
accent
#DF4981
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522070

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

Preview Lab → · Contrast checker → · Palette generator →

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