#522A74#522A74

#522A74 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.124 H 306.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#522A74
RGBrgb(82, 42, 116)
HSLhsl(272, 47%, 31%)
HSVhsv(272, 64%, 45%)
CMYKcmyk(29.3%, 63.8%, 0%, 54.5%)
CIE-LABlab(25.89, 33.49, -35.54)
CIE-LCHlch(25.89, 48.83, 313.30°)
OKLaboklab(37.55% 0.0735 -0.1004)
OKLCHoklch(37.55% 0.124 306.2)
XYZxyz(7.4594, 4.7108, 17.0359)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A74 #4C742A
analogous
#2D2A74 #522A74 #742A71
triadic
#522A74 #74522A #2A7452
tetradic
#522A74 #742D2A #4C742A #2A7174
square
#522A74 #742D2A #4C742A #2A7174
split-complementary
#522A74 #71742A #2A742D
monochromatic
#12091A #321A47 #522A74 #723AA1 #9156C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522A74#FFFFFF#000000##FFFFFF
##522A741.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)
#053C76
Deuteranopia (green-blind)
#1B3E72
Tritanopia (blue-blind)
#4C394B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522a74;
/* rgb */ color: rgb(82, 42, 116);
/* oklch */ color: oklch(37.6% 0.124 306.2);
Tailwind
colors: {
  custom: {
    50: '#85669c',
    500: '#522a74',
    950: '#000000',
  },
}
SCSS
$custom: #522a74;
$custom-light: #85669c;
$custom-dark: #000000;
JSON
{
  "hex": "#522a74",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 272.432,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37554,
    "c": 0.12444,
    "h": 306.2
  },
  "luminance": 0.04711
}

Semantic roles & 50–950 ramp

primary
#522A74
secondary
#7AA654
accent
#D6518F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522A74

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

Preview Lab → · Contrast checker → · Palette generator →

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