#522F91#522F91

#522F91 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.153 H 295.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#522F91
RGBrgb(82, 47, 145)
HSLhsl(261, 51%, 38%)
HSVhsv(261, 68%, 57%)
CMYKcmyk(43.4%, 67.6%, 0%, 43.1%)
CIE-LABlab(29.08, 38.57, -48.55)
CIE-LCHlch(29.08, 62.01, 308.46°)
OKLaboklab(40.54% 0.0649 -0.1387)
OKLCHoklch(40.54% 0.153 295.1)
XYZxyz(9.6057, 5.8710, 27.4097)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F91 #6E912F
analogous
#2F3D91 #522F91 #832F91
triadic
#522F91 #91522F #2F9152
tetradic
#522F91 #912F3D #6E912F #2F9183
square
#522F91 #912F3D #6E912F #2F9183
split-complementary
#522F91 #91832F #3D912F
monochromatic
#1E1135 #382063 #522F91 #6C3EBF #8F6BCF

Accessibility & contrast

On white

9.66
#522F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#522F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F91
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F91#FFFFFF#000000##FFFFFF
##522F911.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#41465C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522f91;
/* rgb */ color: rgb(82, 47, 145);
/* oklch */ color: oklch(40.5% 0.153 295.1);
Tailwind
colors: {
  custom: {
    50: '#886ab2',
    500: '#522f91',
    950: '#000000',
  },
}
SCSS
$custom: #522f91;
$custom-light: #886ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#522f91",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 261.429,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40544,
    "c": 0.15312,
    "h": 295.1
  },
  "luminance": 0.05871
}

Semantic roles & 50–950 ramp

primary
#522F91
secondary
#99B665
accent
#DB4DA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522F91

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

Preview Lab → · Contrast checker → · Palette generator →

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