#522D8E#522D8E

#522D8E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.152 H 296.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#522D8E
RGBrgb(82, 45, 142)
HSLhsl(263, 52%, 37%)
HSVhsv(263, 68%, 56%)
CMYKcmyk(42.3%, 68.3%, 0%, 44.3%)
CIE-LABlab(28.44, 38.84, -47.74)
CIE-LCHlch(28.44, 61.54, 309.13°)
OKLaboklab(40.01% 0.0675 -0.1363)
OKLCHoklch(40.01% 0.152 296.4)
XYZxyz(9.2993, 5.6234, 26.1814)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D8E #698E2D
analogous
#2D388E #522D8E #832D8E
triadic
#522D8E #8E522D #2D8E52
tetradic
#522D8E #8E2D38 #698E2D #2D8E83
square
#522D8E #8E2D38 #698E2D #2D8E83
split-complementary
#522D8E #8E832D #388E2D
monochromatic
#1C1031 #371E60 #522D8E #6D3CBC #8E67CF

Accessibility & contrast

On white

9.88
#522D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#522D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D8E
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D8E#FFFFFF#000000##FFFFFF
##522D8E1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#434459
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522d8e;
/* rgb */ color: rgb(82, 45, 142);
/* oklch */ color: oklch(40.0% 0.152 296.4);
Tailwind
colors: {
  custom: {
    50: '#8868b0',
    500: '#522d8e',
    950: '#000000',
  },
}
SCSS
$custom: #522d8e;
$custom-light: #8868b0;
$custom-dark: #000000;
JSON
{
  "hex": "#522d8e",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 262.887,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40007,
    "c": 0.15212,
    "h": 296.4
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#522D8E
secondary
#95B561
accent
#DB4CA5
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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