#522C9F#522C9F

#522C9F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.174 H 292.2°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#522C9F
RGBrgb(82, 44, 159)
HSLhsl(260, 57%, 40%)
HSVhsv(260, 72%, 62%)
CMYKcmyk(48.4%, 72.3%, 0%, 37.6%)
CIE-LABlab(29.66, 44.15, -56.18)
CIE-LCHlch(29.66, 71.45, 308.16°)
OKLaboklab(41.32% 0.0656 -0.1611)
OKLCHoklch(41.32% 0.174 292.2)
XYZxyz(10.6366, 6.0980, 33.4108)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C9F #799F2C
analogous
#2C409F #522C9F #8B2C9F
triadic
#522C9F #9F522C #2C9F52
tetradic
#522C9F #9F2C40 #799F2C #2C9F8B
square
#522C9F #9F2C40 #799F2C #2C9F8B
split-complementary
#522C9F #9F8B2C #409F2C
monochromatic
#21113F #391F6F #522C9F #6C3ECA #916ED7

Accessibility & contrast

On white

9.46
#522C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#522C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C9F
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C9F#FFFFFF#000000##FFFFFF
##522C9F1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#3A4A62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522c9f;
/* rgb */ color: rgb(82, 44, 159);
/* oklch */ color: oklch(41.3% 0.174 292.2);
Tailwind
colors: {
  custom: {
    50: '#8a69bc',
    500: '#522c9f',
    950: '#000000',
  },
}
SCSS
$custom: #522c9f;
$custom-light: #8a69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#522c9f",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 259.826,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41315,
    "c": 0.17392,
    "h": 292.2
  },
  "luminance": 0.06098
}

Semantic roles & 50–950 ramp

primary
#522C9F
secondary
#A2BE69
accent
#E048AE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #522C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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