#522785#522785

#522785 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.149 H 300.4°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#522785
RGBrgb(82, 39, 133)
HSLhsl(267, 55%, 34%)
HSVhsv(267, 71%, 52%)
CMYKcmyk(38.3%, 70.7%, 0%, 47.8%)
CIE-LABlab(26.56, 39.61, -45.20)
CIE-LCHlch(26.56, 60.10, 311.22°)
OKLaboklab(38.43% 0.0756 -0.1288)
OKLCHoklch(38.43% 0.149 300.4)
XYZxyz(8.4378, 4.9383, 22.6944)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522785 #5A8527
analogous
#272B85 #522785 #812785
triadic
#522785 #855227 #278552
tetradic
#522785 #85272B #5A8527 #278581
square
#522785 #85272B #5A8527 #278581
split-complementary
#522785 #858127 #2B8527
monochromatic
#180B26 #351956 #522785 #6F35B4 #8E58CE

Accessibility & contrast

On white

10.57
#522785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#522785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522785
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522785#FFFFFF#000000##FFFFFF
##5227851.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#473D53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522785;
/* rgb */ color: rgb(82, 39, 133);
/* oklch */ color: oklch(38.4% 0.149 300.4);
Tailwind
colors: {
  custom: {
    50: '#8765a9',
    500: '#522785',
    950: '#000000',
  },
}
SCSS
$custom: #522785;
$custom-light: #8765a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522785",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 267.447,
    "s": 54.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38433,
    "c": 0.14934,
    "h": 300.4
  },
  "luminance": 0.04938
}

Semantic roles & 50–950 ramp

primary
#522785
secondary
#88B355
accent
#DE4A9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522785

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

Preview Lab → · Contrast checker → · Palette generator →

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