#522CB1#522CB1

#522CB1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.195 H 288.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#522CB1
RGBrgb(82, 44, 177)
HSLhsl(257, 60%, 43%)
HSVhsv(257, 75%, 69%)
CMYKcmyk(53.7%, 75.1%, 0%, 30.6%)
CIE-LABlab(31.27, 49.23, -64.36)
CIE-LCHlch(31.27, 81.03, 307.41°)
OKLaboklab(42.95% 0.0613 -0.1851)
OKLCHoklch(42.95% 0.195 288.3)
XYZxyz(12.3138, 6.7689, 42.2441)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CB1 #8BB12C
analogous
#2C48B1 #522CB1 #942CB1
triadic
#522CB1 #B1522C #2CB152
tetradic
#522CB1 #B12C48 #8BB12C #2CB194
square
#522CB1 #B12C48 #8BB12C #2CB194
split-complementary
#522CB1 #B1942C #48B12C
monochromatic
#25144F #3B2080 #522CB1 #7049D2 #967ADE

Accessibility & contrast

On white

8.92
#522CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522CB1
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CB1#FFFFFF#000000##FFFFFF
##522CB11.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#2C516C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522cb1;
/* rgb */ color: rgb(82, 44, 177);
/* oklch */ color: oklch(43.0% 0.195 288.3);
Tailwind
colors: {
  custom: {
    50: '#8d69c9',
    500: '#522cb1',
    950: '#000000',
  },
}
SCSS
$custom: #522cb1;
$custom-light: #8d69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#522cb1",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 257.143,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42953,
    "c": 0.19498,
    "h": 288.3
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#522CB1
secondary
#AEC673
accent
#E344B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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