#522DC1#522DC1

#522DC1 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.212 H 285.4°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#522DC1
RGBrgb(82, 45, 193)
HSLhsl(255, 62%, 47%)
HSVhsv(255, 77%, 76%)
CMYKcmyk(57.5%, 76.7%, 0%, 24.3%)
CIE-LABlab(32.96, 53.27, -71.06)
CIE-LCHlch(32.96, 88.81, 306.86°)
OKLaboklab(44.6% 0.0563 -0.2047)
OKLCHoklch(44.6% 0.212 285.4)
XYZxyz(14.0408, 7.5200, 51.1534)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DC1 #9CC12D
analogous
#2D52C1 #522DC1 #9C2DC1
triadic
#522DC1 #C1522D #2DC152
tetradic
#522DC1 #C12D52 #9CC12D #2DC19C
square
#522DC1 #C12D52 #9CC12D #2DC19C
split-complementary
#522DC1 #C19C2D #52C12D
monochromatic
#28165E #3D218F #522DC1 #7554D7 #9D86E3

Accessibility & contrast

On white

8.39
#522DC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522DC1
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DC1#FFFFFF#000000##FFFFFF
##522DC11.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C5
Deuteranopia (green-blind)
#0049BE
Tritanopia (blue-blind)
#175876
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #522dc1;
/* rgb */ color: rgb(82, 45, 193);
/* oklch */ color: oklch(44.6% 0.212 285.4);
Tailwind
colors: {
  custom: {
    50: '#8f6bd5',
    500: '#522dc1',
    950: '#000000',
  },
}
SCSS
$custom: #522dc1;
$custom-light: #8f6bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#522dc1",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 255,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44597,
    "c": 0.21229,
    "h": 285.4
  },
  "luminance": 0.07521
}

Semantic roles & 50–950 ramp

primary
#522DC1
secondary
#B9CC7E
accent
#E543BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #522DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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