#522A72#522A72

#522A72 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.4% C 0.122 H 307.1°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#522A72
RGBrgb(82, 42, 114)
HSLhsl(273, 46%, 31%)
HSVhsv(273, 63%, 45%)
CMYKcmyk(28.1%, 63.2%, 0%, 55.3%)
CIE-LABlab(25.76, 32.97, -34.48)
CIE-LCHlch(25.76, 47.71, 313.72°)
OKLaboklab(37.41% 0.0736 -0.0973)
OKLCHoklch(37.41% 0.122 307.1)
XYZxyz(7.3443, 4.6648, 16.4298)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A72 #4A722A
analogous
#2E2A72 #522A72 #722A6E
triadic
#522A72 #72522A #2A7252
tetradic
#522A72 #722E2A #4A722A #2A6E72
square
#522A72 #722E2A #4A722A #2A6E72
split-complementary
#522A72 #6E722A #2A722E
monochromatic
#120919 #321A45 #522A72 #723A9F #9156C1

Accessibility & contrast

On white

10.86
#522A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#522A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A72
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A72#FFFFFF#000000##FFFFFF
##522A721.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093C74
Deuteranopia (green-blind)
#1D3D70
Tritanopia (blue-blind)
#4D3849
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522a72;
/* rgb */ color: rgb(82, 42, 114);
/* oklch */ color: oklch(37.4% 0.122 307.1);
Tailwind
colors: {
  custom: {
    50: '#85669b',
    500: '#522a72',
    950: '#000000',
  },
}
SCSS
$custom: #522a72;
$custom-light: #85669b;
$custom-dark: #000000;
JSON
{
  "hex": "#522a72",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 273.333,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37411,
    "c": 0.12199,
    "h": 307.1
  },
  "luminance": 0.04665
}

Semantic roles & 50–950 ramp

primary
#522A72
secondary
#77A454
accent
#D6528D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522A72

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

Preview Lab → · Contrast checker → · Palette generator →

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