#522B9F#522B9F

#522B9F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.175 H 292.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#522B9F
RGBrgb(82, 43, 159)
HSLhsl(260, 57%, 40%)
HSVhsv(260, 73%, 62%)
CMYKcmyk(48.4%, 73%, 0%, 37.6%)
CIE-LABlab(29.47, 44.66, -56.48)
CIE-LCHlch(29.47, 72.00, 308.34°)
OKLaboklab(41.18% 0.0665 -0.162)
OKLCHoklch(41.18% 0.175 292.3)
XYZxyz(10.5998, 6.0244, 33.3985)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B9F #789F2B
analogous
#2B3E9F #522B9F #8C2B9F
triadic
#522B9F #9F522B #2B9F52
tetradic
#522B9F #9F2B3E #789F2B #2B9F8C
square
#522B9F #9F2B3E #789F2B #2B9F8C
split-complementary
#522B9F #9F8C2B #3E9F2B
monochromatic
#20113F #391E6F #522B9F #6C3DCA #916DD7

Accessibility & contrast

On white

9.52
#522B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#522B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B9F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B9F#FFFFFF#000000##FFFFFF
##522B9F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#3A4962
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522b9f;
/* rgb */ color: rgb(82, 43, 159);
/* oklch */ color: oklch(41.2% 0.175 292.3);
Tailwind
colors: {
  custom: {
    50: '#8a68bc',
    500: '#522b9f',
    950: '#000000',
  },
}
SCSS
$custom: #522b9f;
$custom-light: #8a68bc;
$custom-dark: #000000;
JSON
{
  "hex": "#522b9f",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 260.172,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41184,
    "c": 0.17508,
    "h": 292.3
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#522B9F
secondary
#A1BE67
accent
#E147AD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #522B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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