#522F9D#522F9D

#522F9D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.168 H 292.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#522F9D
RGBrgb(82, 47, 157)
HSLhsl(259, 54%, 40%)
HSVhsv(259, 70%, 62%)
CMYKcmyk(47.8%, 70.1%, 0%, 38.4%)
CIE-LABlab(30.06, 41.98, -54.30)
CIE-LCHlch(30.06, 68.64, 307.71°)
OKLaboklab(41.55% 0.0631 -0.1556)
OKLCHoklch(41.55% 0.168 292.1)
XYZxyz(10.5803, 6.2608, 32.5427)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F9D #7A9D2F
analogous
#2F439D #522F9D #892F9D
triadic
#522F9D #9D522F #2F9D52
tetradic
#522F9D #9D2F43 #7A9D2F #2F9D89
square
#522F9D #9D2F43 #7A9D2F #2F9D89
split-complementary
#522F9D #9D892F #439D2F
monochromatic
#21133F #39216E #522F9D #6D43C7 #9172D5

Accessibility & contrast

On white

9.32
#522F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522F9D
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F9D#FFFFFF#000000##FFFFFF
##522F9D1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#3B4B62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522f9d;
/* rgb */ color: rgb(82, 47, 157);
/* oklch */ color: oklch(41.5% 0.168 292.1);
Tailwind
colors: {
  custom: {
    50: '#8a6abb',
    500: '#522f9d',
    950: '#000000',
  },
}
SCSS
$custom: #522f9d;
$custom-light: #8a6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#522f9d",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 259.091,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.41549,
    "c": 0.16788,
    "h": 292.1
  },
  "luminance": 0.06261
}

Semantic roles & 50–950 ramp

primary
#522F9D
secondary
#A3BC6B
accent
#DD4BAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #522F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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