#522F9C#522F9C

#522F9C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.167 H 292.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#522F9C
RGBrgb(82, 47, 156)
HSLhsl(259, 54%, 40%)
HSVhsv(259, 70%, 61%)
CMYKcmyk(47.4%, 69.9%, 0%, 38.8%)
CIE-LABlab(29.98, 41.70, -53.83)
CIE-LCHlch(29.98, 68.09, 307.76°)
OKLaboklab(41.46% 0.0632 -0.1542)
OKLCHoklch(41.46% 0.167 292.3)
XYZxyz(10.4953, 6.2268, 32.0950)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F9C #799C2F
analogous
#2F429C #522F9C #892F9C
triadic
#522F9C #9C522F #2F9C52
tetradic
#522F9C #9C2F42 #799C2F #2F9C89
square
#522F9C #9C2F42 #799C2F #2F9C89
split-complementary
#522F9C #9C892F #429C2F
monochromatic
#21133E #39216D #522F9C #6C42C6 #9171D4

Accessibility & contrast

On white

9.35
#522F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#522F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F9C
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F9C#FFFFFF#000000##FFFFFF
##522F9C1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#3B4A62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522f9c;
/* rgb */ color: rgb(82, 47, 156);
/* oklch */ color: oklch(41.5% 0.167 292.3);
Tailwind
colors: {
  custom: {
    50: '#896aba',
    500: '#522f9c',
    950: '#000000',
  },
}
SCSS
$custom: #522f9c;
$custom-light: #896aba;
$custom-dark: #000000;
JSON
{
  "hex": "#522f9c",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 259.266,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41464,
    "c": 0.16666,
    "h": 292.3
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#522F9C
secondary
#A2BC6B
accent
#DD4BAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #522F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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