#522F79#522F79

#522F79 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.123 H 302.9°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#522F79
RGBrgb(82, 47, 121)
HSLhsl(268, 44%, 33%)
HSVhsv(268, 61%, 47%)
CMYKcmyk(32.2%, 61.2%, 0%, 52.5%)
CIE-LABlab(27.32, 31.92, -36.43)
CIE-LCHlch(27.32, 48.44, 311.23°)
OKLaboklab(38.7% 0.0667 -0.103)
OKLCHoklch(38.7% 0.123 302.9)
XYZxyz(7.9466, 5.2073, 18.6719)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F79 #56792F
analogous
#2F3179 #522F79 #772F79
triadic
#522F79 #79522F #2F7952
tetradic
#522F79 #792F31 #56792F #2F7977
square
#522F79 #792F31 #56792F #2F7977
split-complementary
#522F79 #79772F #31792F
monochromatic
#160D21 #341E4D #522F79 #7040A5 #8F61C2

Accessibility & contrast

On white

10.29
#522F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522F79
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F79#FFFFFF#000000##FFFFFF
##522F791.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C407B
Deuteranopia (green-blind)
#1C4077
Tritanopia (blue-blind)
#4B3E4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522f79;
/* rgb */ color: rgb(82, 47, 121);
/* oklch */ color: oklch(38.7% 0.123 302.9);
Tailwind
colors: {
  custom: {
    50: '#8569a0',
    500: '#522f79',
    950: '#000000',
  },
}
SCSS
$custom: #522f79;
$custom-light: #8569a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522f79",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 268.378,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38702,
    "c": 0.12273,
    "h": 302.9
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#522F79
secondary
#84A85B
accent
#D45497
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522F79

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

Preview Lab → · Contrast checker → · Palette generator →

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