#522EB4#522EB4

#522EB4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.196 H 287.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#522EB4
RGBrgb(82, 46, 180)
HSLhsl(256, 59%, 44%)
HSVhsv(256, 74%, 71%)
CMYKcmyk(54.4%, 74.4%, 0%, 29.4%)
CIE-LABlab(31.90, 49.09, -65.12)
CIE-LCHlch(31.90, 81.55, 307.01°)
OKLaboklab(43.48% 0.059 -0.1873)
OKLCHoklch(43.48% 0.196 287.5)
XYZxyz(12.6924, 7.0425, 43.8617)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EB4 #90B42E
analogous
#2E4DB4 #522EB4 #952EB4
triadic
#522EB4 #B4522E #2EB452
tetradic
#522EB4 #B42E4D #90B42E #2EB495
square
#522EB4 #B42E4D #90B42E #2EB495
split-complementary
#522EB4 #B4952E #4DB42E
monochromatic
#261553 #3C2283 #522EB4 #714ED2 #987EDE

Accessibility & contrast

On white

8.72
#522EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#522EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EB4
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EB4#FFFFFF#000000##FFFFFF
##522EB41.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#29536F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522eb4;
/* rgb */ color: rgb(82, 46, 180);
/* oklch */ color: oklch(43.5% 0.196 287.5);
Tailwind
colors: {
  custom: {
    50: '#8d6bcc',
    500: '#522eb4',
    950: '#000000',
  },
}
SCSS
$custom: #522eb4;
$custom-light: #8d6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#522eb4",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 256.119,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4348,
    "c": 0.19638,
    "h": 287.5
  },
  "luminance": 0.07043
}

Semantic roles & 50–950 ramp

primary
#522EB4
secondary
#B1C777
accent
#E245B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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