#522F78#522F78

#522F78 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.121 H 303.3°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#522F78
RGBrgb(82, 47, 120)
HSLhsl(269, 44%, 33%)
HSVhsv(269, 61%, 47%)
CMYKcmyk(31.7%, 60.8%, 0%, 52.9%)
CIE-LABlab(27.25, 31.65, -35.91)
CIE-LCHlch(27.25, 47.87, 311.40°)
OKLaboklab(38.63% 0.0667 -0.1015)
OKLCHoklch(38.63% 0.121 303.3)
XYZxyz(7.8856, 5.1829, 18.3506)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F78 #55782F
analogous
#2F3078 #522F78 #762F78
triadic
#522F78 #78522F #2F7852
tetradic
#522F78 #782F30 #55782F #2F7876
square
#522F78 #782F30 #55782F #2F7876
split-complementary
#522F78 #78762F #30782F
monochromatic
#160D20 #341E4C #522F78 #7040A4 #8F60C1

Accessibility & contrast

On white

10.31
#522F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F78
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F78#FFFFFF#000000##FFFFFF
##522F781.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E407A
Deuteranopia (green-blind)
#1E4076
Tritanopia (blue-blind)
#4B3E4E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522f78;
/* rgb */ color: rgb(82, 47, 120);
/* oklch */ color: oklch(38.6% 0.121 303.3);
Tailwind
colors: {
  custom: {
    50: '#85699f',
    500: '#522f78',
    950: '#000000',
  },
}
SCSS
$custom: #522f78;
$custom-light: #85699f;
$custom-dark: #000000;
JSON
{
  "hex": "#522f78",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 268.767,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3863,
    "c": 0.12144,
    "h": 303.3
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#522F78
secondary
#83A85B
accent
#D35497
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522F78

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

Preview Lab → · Contrast checker → · Palette generator →

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