#522781#522781

#522781 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.145 H 301.8°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#522781
RGBrgb(82, 39, 129)
HSLhsl(269, 54%, 33%)
HSVhsv(269, 70%, 51%)
CMYKcmyk(36.4%, 69.8%, 0%, 49.4%)
CIE-LABlab(26.24, 38.55, -43.21)
CIE-LCHlch(26.24, 57.90, 311.74°)
OKLaboklab(38.11% 0.0762 -0.1229)
OKLCHoklch(38.11% 0.145 301.8)
XYZxyz(8.1667, 4.8298, 21.2666)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522781 #568127
analogous
#272981 #522781 #7F2781
triadic
#522781 #815227 #278152
tetradic
#522781 #812729 #568127 #27817F
square
#522781 #812729 #568127 #27817F
split-complementary
#522781 #817F27 #298127
monochromatic
#160B23 #341952 #522781 #7035B0 #8F56CC

Accessibility & contrast

On white

10.68
#522781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522781
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522781#FFFFFF#000000##FFFFFF
##5227811.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522781;
/* rgb */ color: rgb(82, 39, 129);
/* oklch */ color: oklch(38.1% 0.145 301.8);
Tailwind
colors: {
  custom: {
    50: '#8764a6',
    500: '#522781',
    950: '#000000',
  },
}
SCSS
$custom: #522781;
$custom-light: #8764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522781",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 268.667,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3811,
    "c": 0.14461,
    "h": 301.8
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#522781
secondary
#84B153
accent
#DD4B97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522781

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

Preview Lab → · Contrast checker → · Palette generator →

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