#522E78#522E78

#522E78 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.123 H 303.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#522E78
RGBrgb(82, 46, 120)
HSLhsl(269, 45%, 33%)
HSVhsv(269, 62%, 47%)
CMYKcmyk(31.7%, 61.7%, 0%, 52.9%)
CIE-LABlab(27.03, 32.24, -36.26)
CIE-LCHlch(27.03, 48.52, 311.64°)
OKLaboklab(38.47% 0.068 -0.1025)
OKLCHoklch(38.47% 0.123 303.6)
XYZxyz(7.8461, 5.1039, 18.3375)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E78 #54782E
analogous
#2E2F78 #522E78 #772E78
triadic
#522E78 #78522E #2E7852
tetradic
#522E78 #782E2F #54782E #2E7877
square
#522E78 #782E2F #54782E #2E7877
split-complementary
#522E78 #78772E #2F782E
monochromatic
#160C20 #341D4C #522E78 #703FA4 #8F5FC2

Accessibility & contrast

On white

10.39
#522E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E78
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E78#FFFFFF#000000##FFFFFF
##522E781.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3F7A
Deuteranopia (green-blind)
#1C4076
Tritanopia (blue-blind)
#4B3D4E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522e78;
/* rgb */ color: rgb(82, 46, 120);
/* oklch */ color: oklch(38.5% 0.123 303.6);
Tailwind
colors: {
  custom: {
    50: '#85689f',
    500: '#522e78',
    950: '#000000',
  },
}
SCSS
$custom: #522e78;
$custom-light: #85689f;
$custom-dark: #000000;
JSON
{
  "hex": "#522e78",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 269.189,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38469,
    "c": 0.12305,
    "h": 303.6
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#522E78
secondary
#82A85A
accent
#D45496
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522E78

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

Preview Lab → · Contrast checker → · Palette generator →

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