#522F7A#522F7A

#522F7A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.124 H 302.5°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#522F7A
RGBrgb(82, 47, 122)
HSLhsl(268, 44%, 33%)
HSVhsv(268, 61%, 48%)
CMYKcmyk(32.8%, 61.5%, 0%, 52.2%)
CIE-LABlab(27.39, 32.19, -36.95)
CIE-LCHlch(27.39, 49.01, 311.06°)
OKLaboklab(38.77% 0.0666 -0.1046)
OKLCHoklch(38.77% 0.124 302.5)
XYZxyz(8.0082, 5.2320, 18.9966)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F7A #577A2F
analogous
#2F317A #522F7A #772F7A
triadic
#522F7A #7A522F #2F7A52
tetradic
#522F7A #7A2F31 #577A2F #2F7A77
square
#522F7A #7A2F31 #577A2F #2F7A77
split-complementary
#522F7A #7A772F #317A2F
monochromatic
#170D22 #341E4E #522F7A #7040A6 #8E61C2

Accessibility & contrast

On white

10.26
#522F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F7A
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F7A#FFFFFF#000000##FFFFFF
##522F7A1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A407C
Deuteranopia (green-blind)
#1B4078
Tritanopia (blue-blind)
#4A3E4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522f7a;
/* rgb */ color: rgb(82, 47, 122);
/* oklch */ color: oklch(38.8% 0.124 302.5);
Tailwind
colors: {
  custom: {
    50: '#8669a1',
    500: '#522f7a',
    950: '#000000',
  },
}
SCSS
$custom: #522f7a;
$custom-light: #8669a1;
$custom-dark: #000000;
JSON
{
  "hex": "#522f7a",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 268,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38773,
    "c": 0.12402,
    "h": 302.5
  },
  "luminance": 0.05232
}

Semantic roles & 50–950 ramp

primary
#522F7A
secondary
#85A95C
accent
#D45498
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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