#522BB2#522BB2

#522BB2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.197 H 288.3°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#522BB2
RGBrgb(82, 43, 178)
HSLhsl(257, 61%, 43%)
HSVhsv(257, 76%, 70%)
CMYKcmyk(53.9%, 75.8%, 0%, 30.2%)
CIE-LABlab(31.20, 50.00, -65.09)
CIE-LCHlch(31.20, 82.07, 307.53°)
OKLaboklab(42.93% 0.0619 -0.1872)
OKLCHoklch(42.93% 0.197 288.3)
XYZxyz(12.3771, 6.7353, 42.7587)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BB2 #8BB22B
analogous
#2B48B2 #522BB2 #952BB2
triadic
#522BB2 #B2522B #2BB252
tetradic
#522BB2 #B22B48 #8BB22B #2BB295
square
#522BB2 #B22B48 #8BB22B #2BB295
split-complementary
#522BB2 #B2952B #48B22B
monochromatic
#25134F #3B1F81 #522BB2 #7048D3 #9679DF

Accessibility & contrast

On white

8.95
#522BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#522BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BB2
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BB2#FFFFFF#000000##FFFFFF
##522BB21.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#2B516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522bb2;
/* rgb */ color: rgb(82, 43, 178);
/* oklch */ color: oklch(42.9% 0.197 288.3);
Tailwind
colors: {
  custom: {
    50: '#8d69ca',
    500: '#522bb2',
    950: '#000000',
  },
}
SCSS
$custom: #522bb2;
$custom-light: #8d69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#522bb2",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 257.333,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42927,
    "c": 0.19714,
    "h": 288.3
  },
  "luminance": 0.06736
}

Semantic roles & 50–950 ramp

primary
#522BB2
secondary
#AEC772
accent
#E444B6
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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