#522EB3#522EB3

#522EB3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.195 H 287.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#522EB3
RGBrgb(82, 46, 179)
HSLhsl(256, 59%, 44%)
HSVhsv(256, 74%, 70%)
CMYKcmyk(54.2%, 74.3%, 0%, 29.8%)
CIE-LABlab(31.81, 48.80, -64.67)
CIE-LCHlch(31.81, 81.02, 307.04°)
OKLaboklab(43.39% 0.0593 -0.186)
OKLCHoklch(43.39% 0.195 287.7)
XYZxyz(12.5909, 7.0019, 43.3271)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EB3 #8FB32E
analogous
#2E4CB3 #522EB3 #952EB3
triadic
#522EB3 #B3522E #2EB352
tetradic
#522EB3 #B32E4C #8FB32E #2EB395
square
#522EB3 #B32E4C #8FB32E #2EB395
split-complementary
#522EB3 #B3952E #4CB32E
monochromatic
#251552 #3C2182 #522EB3 #714DD1 #987EDE

Accessibility & contrast

On white

8.75
#522EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#522EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EB3
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EB3#FFFFFF#000000##FFFFFF
##522EB31.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#2A526E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522eb3;
/* rgb */ color: rgb(82, 46, 179);
/* oklch */ color: oklch(43.4% 0.195 287.7);
Tailwind
colors: {
  custom: {
    50: '#8d6bcb',
    500: '#522eb3',
    950: '#000000',
  },
}
SCSS
$custom: #522eb3;
$custom-light: #8d6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#522eb3",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 256.241,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43387,
    "c": 0.19521,
    "h": 287.7
  },
  "luminance": 0.07003
}

Semantic roles & 50–950 ramp

primary
#522EB3
secondary
#B1C676
accent
#E246B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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