#522681#522681

#522681 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.146 H 302.0°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#522681
RGBrgb(82, 38, 129)
HSLhsl(269, 54%, 33%)
HSVhsv(269, 71%, 51%)
CMYKcmyk(36.4%, 70.5%, 0%, 49.4%)
CIE-LABlab(26.05, 39.07, -43.51)
CIE-LCHlch(26.05, 58.48, 311.92°)
OKLaboklab(37.97% 0.0773 -0.1238)
OKLCHoklch(37.97% 0.146 302)
XYZxyz(8.1343, 4.7650, 21.2558)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522681 #558126
analogous
#262781 #522681 #7F2681
triadic
#522681 #815226 #268152
tetradic
#522681 #812627 #558126 #26817F
square
#522681 #812627 #558126 #26817F
split-complementary
#522681 #817F26 #278126
monochromatic
#160A22 #341852 #522681 #7034B0 #8F55CD

Accessibility & contrast

On white

10.75
#522681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#522681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522681
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522681#FFFFFF#000000##FFFFFF
##5226811.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#483B50
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522681;
/* rgb */ color: rgb(82, 38, 129);
/* oklch */ color: oklch(38.0% 0.146 302.0);
Tailwind
colors: {
  custom: {
    50: '#8764a6',
    500: '#522681',
    950: '#000000',
  },
}
SCSS
$custom: #522681;
$custom-light: #8764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522681",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 129
  },
  "hsl": {
    "h": 269.011,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37974,
    "c": 0.14598,
    "h": 302
  },
  "luminance": 0.04765
}

Semantic roles & 50–950 ramp

primary
#522681
secondary
#83B151
accent
#DE4A96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522681

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

Preview Lab → · Contrast checker → · Palette generator →

#522681 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva