#522BB5#522BB5

#522BB5 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.2% C 0.201 H 287.7°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#522BB5
RGBrgb(82, 43, 181)
HSLhsl(257, 62%, 44%)
HSVhsv(257, 76%, 71%)
CMYKcmyk(54.7%, 76.2%, 0%, 29%)
CIE-LABlab(31.48, 50.84, -66.41)
CIE-LCHlch(31.48, 83.64, 307.44°)
OKLaboklab(43.21% 0.061 -0.1911)
OKLCHoklch(43.21% 0.201 287.7)
XYZxyz(12.6816, 6.8571, 44.3624)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BB5 #8EB52B
analogous
#2B49B5 #522BB5 #972BB5
triadic
#522BB5 #B5522B #2BB552
tetradic
#522BB5 #B52B49 #8EB52B #2BB597
square
#522BB5 #B52B49 #8EB52B #2BB597
split-complementary
#522BB5 #B5972B #49B52B
monochromatic
#251452 #3C1F84 #522BB5 #7049D4 #977BE0

Accessibility & contrast

On white

8.85
#522BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#522BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BB5
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BB5#FFFFFF#000000##FFFFFF
##522BB51.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#28526F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522bb5;
/* rgb */ color: rgb(82, 43, 181);
/* oklch */ color: oklch(43.2% 0.201 287.7);
Tailwind
colors: {
  custom: {
    50: '#8d69cc',
    500: '#522bb5',
    950: '#000000',
  },
}
SCSS
$custom: #522bb5;
$custom-light: #8d69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#522bb5",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 256.957,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43211,
    "c": 0.20057,
    "h": 287.7
  },
  "luminance": 0.06858
}

Semantic roles & 50–950 ramp

primary
#522BB5
secondary
#B0C874
accent
#E543B7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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