#522DA7#522DA7

#522DA7 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.182 H 290.2°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#522DA7
RGBrgb(82, 45, 167)
HSLhsl(258, 58%, 42%)
HSVhsv(258, 73%, 65%)
CMYKcmyk(50.9%, 73.1%, 0%, 34.5%)
CIE-LABlab(30.55, 45.89, -59.56)
CIE-LCHlch(30.55, 75.19, 307.61°)
OKLaboklab(42.16% 0.0629 -0.171)
OKLCHoklch(42.16% 0.182 290.2)
XYZxyz(11.3911, 6.4602, 37.1985)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DA7 #82A72D
analogous
#2D45A7 #522DA7 #8F2DA7
triadic
#522DA7 #A7522D #2DA752
tetradic
#522DA7 #A72D45 #82A72D #2DA78F
square
#522DA7 #A72D45 #82A72D #2DA78F
split-complementary
#522DA7 #A78F2D #45A72D
monochromatic
#231347 #3A2077 #522DA7 #6E44CD #9375DA

Accessibility & contrast

On white

9.16
#522DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#522DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DA7
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DA7#FFFFFF#000000##FFFFFF
##522DA71.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#344D67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522da7;
/* rgb */ color: rgb(82, 45, 167);
/* oklch */ color: oklch(42.2% 0.182 290.2);
Tailwind
colors: {
  custom: {
    50: '#8b69c2',
    500: '#522da7',
    950: '#000000',
  },
}
SCSS
$custom: #522da7;
$custom-light: #8b69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#522da7",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 258.197,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4216,
    "c": 0.18223,
    "h": 290.2
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#522DA7
secondary
#A8C16E
accent
#E147B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #522DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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