#522C74#522C74

#522C74 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.9% C 0.121 H 305.7°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#522C74
RGBrgb(82, 44, 116)
HSLhsl(272, 45%, 31%)
HSVhsv(272, 62%, 45%)
CMYKcmyk(29.3%, 62.1%, 0%, 54.5%)
CIE-LABlab(26.32, 32.35, -34.85)
CIE-LCHlch(26.32, 47.55, 312.86°)
OKLaboklab(37.87% 0.0708 -0.0984)
OKLCHoklch(37.87% 0.121 305.7)
XYZxyz(7.5321, 4.8562, 17.0602)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C74 #4E742C
analogous
#2E2C74 #522C74 #742C72
triadic
#522C74 #74522C #2C7452
tetradic
#522C74 #742E2C #4E742C #2C7274
square
#522C74 #742E2C #4E742C #2C7274
split-complementary
#522C74 #72742C #2C742E
monochromatic
#130A1B #331B48 #522C74 #713DA0 #905AC0

Accessibility & contrast

On white

10.65
#522C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C74
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C74#FFFFFF#000000##FFFFFF
##522C741.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3D76
Deuteranopia (green-blind)
#1E3E72
Tritanopia (blue-blind)
#4C3A4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522c74;
/* rgb */ color: rgb(82, 44, 116);
/* oklch */ color: oklch(37.9% 0.121 305.7);
Tailwind
colors: {
  custom: {
    50: '#85679c',
    500: '#522c74',
    950: '#000000',
  },
}
SCSS
$custom: #522c74;
$custom-light: #85679c;
$custom-dark: #000000;
JSON
{
  "hex": "#522c74",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 116
  },
  "hsl": {
    "h": 271.667,
    "s": 45,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37865,
    "c": 0.12123,
    "h": 305.7
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#522C74
secondary
#7CA656
accent
#D55390
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522C74

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

Preview Lab → · Contrast checker → · Palette generator →

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