#522F9E#522F9E

#522F9E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.169 H 291.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#522F9E
RGBrgb(82, 47, 158)
HSLhsl(259, 54%, 40%)
HSVhsv(259, 70%, 62%)
CMYKcmyk(48.1%, 70.3%, 0%, 38%)
CIE-LABlab(30.15, 42.27, -54.77)
CIE-LCHlch(30.15, 69.19, 307.66°)
OKLaboklab(41.64% 0.0629 -0.157)
OKLCHoklch(41.64% 0.169 291.8)
XYZxyz(10.6660, 6.2951, 32.9942)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F9E #7B9E2F
analogous
#2F439E #522F9E #892F9E
triadic
#522F9E #9E522F #2F9E52
tetradic
#522F9E #9E2F43 #7B9E2F #2F9E89
square
#522F9E #9E2F43 #7B9E2F #2F9E89
split-complementary
#522F9E #9E892F #439E2F
monochromatic
#211340 #3A216F #522F9E #6D43C7 #9172D5

Accessibility & contrast

On white

9.30
#522F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#522F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F9E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F9E#FFFFFF#000000##FFFFFF
##522F9E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#3A4B63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522f9e;
/* rgb */ color: rgb(82, 47, 158);
/* oklch */ color: oklch(41.6% 0.169 291.8);
Tailwind
colors: {
  custom: {
    50: '#8a6abc',
    500: '#522f9e',
    950: '#000000',
  },
}
SCSS
$custom: #522f9e;
$custom-light: #8a6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#522f9e",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 258.919,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41635,
    "c": 0.1691,
    "h": 291.8
  },
  "luminance": 0.06295
}

Semantic roles & 50–950 ramp

primary
#522F9E
secondary
#A3BD6C
accent
#DE4AAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #522F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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