#522B77#522B77

#522B77 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.9% C 0.127 H 304.7°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#522B77
RGBrgb(82, 43, 119)
HSLhsl(271, 47%, 32%)
HSVhsv(271, 64%, 47%)
CMYKcmyk(31.1%, 63.9%, 0%, 53.3%)
CIE-LABlab(26.31, 33.71, -36.77)
CIE-LCHlch(26.31, 49.89, 312.51°)
OKLaboklab(37.93% 0.0721 -0.104)
OKLCHoklch(37.93% 0.127 304.7)
XYZxyz(7.6726, 4.8535, 17.9818)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B77 #50772B
analogous
#2C2B77 #522B77 #772B76
triadic
#522B77 #77522B #2B7752
tetradic
#522B77 #772C2B #50772B #2B7677
square
#522B77 #772C2B #50772B #2B7677
split-complementary
#522B77 #76772B #2B772C
monochromatic
#140B1D #331B4A #522B77 #713BA4 #9059C3

Accessibility & contrast

On white

10.66
#522B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B77
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B77#FFFFFF#000000##FFFFFF
##522B771.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023D79
Deuteranopia (green-blind)
#193E75
Tritanopia (blue-blind)
#4B3B4C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522b77;
/* rgb */ color: rgb(82, 43, 119);
/* oklch */ color: oklch(37.9% 0.127 304.7);
Tailwind
colors: {
  custom: {
    50: '#86679f',
    500: '#522b77',
    950: '#000000',
  },
}
SCSS
$custom: #522b77;
$custom-light: #86679f;
$custom-dark: #000000;
JSON
{
  "hex": "#522b77",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 119
  },
  "hsl": {
    "h": 270.789,
    "s": 46.914,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37926,
    "c": 0.12657,
    "h": 304.7
  },
  "luminance": 0.04854
}

Semantic roles & 50–950 ramp

primary
#522B77
secondary
#7EA955
accent
#D75192
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522B77

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

Preview Lab → · Contrast checker → · Palette generator →

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