#522B78#522B78

#522B78 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.0% C 0.128 H 304.3°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#522B78
RGBrgb(82, 43, 120)
HSLhsl(270, 47%, 32%)
HSVhsv(270, 64%, 47%)
CMYKcmyk(31.7%, 64.2%, 0%, 52.9%)
CIE-LABlab(26.38, 33.97, -37.30)
CIE-LCHlch(26.38, 50.45, 312.33°)
OKLaboklab(38% 0.072 -0.1056)
OKLCHoklch(38% 0.128 304.3)
XYZxyz(7.7330, 4.8777, 18.2998)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B78 #51782B
analogous
#2C2B78 #522B78 #782B78
triadic
#522B78 #78522B #2B7852
tetradic
#522B78 #782C2B #51782B #2B7878
square
#522B78 #782C2B #51782B #2B7878
split-complementary
#522B78 #78782B #2B782C
monochromatic
#140B1E #331B4B #522B78 #713BA5 #8F5AC4

Accessibility & contrast

On white

10.63
#522B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#522B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B78
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B78#FFFFFF#000000##FFFFFF
##522B781.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#183E76
Tritanopia (blue-blind)
#4B3B4D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522b78;
/* rgb */ color: rgb(82, 43, 120);
/* oklch */ color: oklch(38.0% 0.128 304.3);
Tailwind
colors: {
  custom: {
    50: '#86679f',
    500: '#522b78',
    950: '#000000',
  },
}
SCSS
$custom: #522b78;
$custom-light: #86679f;
$custom-dark: #000000;
JSON
{
  "hex": "#522b78",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 270.39,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37999,
    "c": 0.12782,
    "h": 304.3
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#522B78
secondary
#7FAA55
accent
#D75193
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522B78

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

Preview Lab → · Contrast checker → · Palette generator →

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