#522B9E#522B9E

#522B9E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.174 H 292.6°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#522B9E
RGBrgb(82, 43, 158)
HSLhsl(260, 57%, 39%)
HSVhsv(260, 73%, 62%)
CMYKcmyk(48.1%, 72.8%, 0%, 38%)
CIE-LABlab(29.39, 44.38, -56.01)
CIE-LCHlch(29.39, 71.46, 308.39°)
OKLaboklab(41.1% 0.0667 -0.1606)
OKLCHoklch(41.1% 0.174 292.6)
XYZxyz(10.5134, 5.9899, 32.9433)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B9E #779E2B
analogous
#2B3D9E #522B9E #8C2B9E
triadic
#522B9E #9E522B #2B9E52
tetradic
#522B9E #9E2B3D #779E2B #2B9E8C
square
#522B9E #9E2B3D #779E2B #2B9E8C
split-complementary
#522B9E #9E8C2B #3D9E2B
monochromatic
#20113E #391E6E #522B9E #6C3CCA #916CD7

Accessibility & contrast

On white

9.55
#522B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#522B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B9E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B9E#FFFFFF#000000##FFFFFF
##522B9E1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522b9e;
/* rgb */ color: rgb(82, 43, 158);
/* oklch */ color: oklch(41.1% 0.174 292.6);
Tailwind
colors: {
  custom: {
    50: '#8a68bc',
    500: '#522b9e',
    950: '#000000',
  },
}
SCSS
$custom: #522b9e;
$custom-light: #8a68bc;
$custom-dark: #000000;
JSON
{
  "hex": "#522b9e",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 260.348,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41096,
    "c": 0.1739,
    "h": 292.6
  },
  "luminance": 0.0599
}

Semantic roles & 50–950 ramp

primary
#522B9E
secondary
#A0BE67
accent
#E047AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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