#522CBA#522CBA

#522CBA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.8% C 0.205 H 286.7°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#522CBA
RGBrgb(82, 44, 186)
HSLhsl(256, 62%, 45%)
HSVhsv(256, 76%, 73%)
CMYKcmyk(55.9%, 76.3%, 0%, 27.1%)
CIE-LABlab(32.12, 51.77, -68.31)
CIE-LCHlch(32.12, 85.71, 307.16°)
OKLaboklab(43.81% 0.059 -0.1966)
OKLCHoklch(43.81% 0.205 286.7)
XYZxyz(13.2406, 7.1396, 47.1253)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CBA #94BA2C
analogous
#2C4DBA #522CBA #992CBA
triadic
#522CBA #BA522C #2CBA52
tetradic
#522CBA #BA2C4D #94BA2C #2CBA99
square
#522CBA #BA2C4D #94BA2C #2CBA99
split-complementary
#522CBA #BA992C #4DBA2C
monochromatic
#261557 #3C2089 #522CBA #724ED5 #9A80E1

Accessibility & contrast

On white

8.65
#522CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#522CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CBA
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CBA#FFFFFF#000000##FFFFFF
##522CBA1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0047B7
Tritanopia (blue-blind)
#225472
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522cba;
/* rgb */ color: rgb(82, 44, 186);
/* oklch */ color: oklch(43.8% 0.205 286.7);
Tailwind
colors: {
  custom: {
    50: '#8e6ad0',
    500: '#522cba',
    950: '#000000',
  },
}
SCSS
$custom: #522cba;
$custom-light: #8e6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#522cba",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 256.056,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43806,
    "c": 0.20529,
    "h": 286.7
  },
  "luminance": 0.0714
}

Semantic roles & 50–950 ramp

primary
#522CBA
secondary
#B4CA78
accent
#E543BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #522CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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