#522BC4#522BC4

#522BC4 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.7% C 0.217 H 285.1°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#522BC4
RGBrgb(82, 43, 196)
HSLhsl(255, 64%, 47%)
HSVhsv(255, 78%, 77%)
CMYKcmyk(58.2%, 78.1%, 0%, 23.1%)
CIE-LABlab(32.93, 55.04, -72.87)
CIE-LCHlch(32.93, 91.32, 307.07°)
OKLaboklab(44.66% 0.0568 -0.2099)
OKLCHoklch(44.66% 0.217 285.1)
XYZxyz(14.3043, 7.5062, 52.9089)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BC4 #9DC42B
analogous
#2B51C4 #522BC4 #9F2BC4
triadic
#522BC4 #C4522B #2BC452
tetradic
#522BC4 #C42B51 #9DC42B #2BC49F
square
#522BC4 #C42B51 #9DC42B #2BC49F
split-complementary
#522BC4 #C49F2B #51C42B
monochromatic
#281560 #3D2092 #522BC4 #7553D9 #9D85E4

Accessibility & contrast

On white

8.40
#522BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#522BC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BC4
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BC4#FFFFFF#000000##FFFFFF
##522BC41.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C8
Deuteranopia (green-blind)
#0049C1
Tritanopia (blue-blind)
#115877
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #522bc4;
/* rgb */ color: rgb(82, 43, 196);
/* oklch */ color: oklch(44.7% 0.217 285.1);
Tailwind
colors: {
  custom: {
    50: '#906ad7',
    500: '#522bc4',
    950: '#000000',
  },
}
SCSS
$custom: #522bc4;
$custom-light: #906ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#522bc4",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 196
  },
  "hsl": {
    "h": 255.294,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44664,
    "c": 0.21749,
    "h": 285.1
  },
  "luminance": 0.07507
}

Semantic roles & 50–950 ramp

primary
#522BC4
secondary
#B9CE7D
accent
#E741BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #522BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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