#522F85#522F85

#522F85 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.138 H 298.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#522F85
RGBrgb(82, 47, 133)
HSLhsl(264, 48%, 35%)
HSVhsv(264, 65%, 52%)
CMYKcmyk(38.3%, 64.7%, 0%, 47.8%)
CIE-LABlab(28.17, 35.20, -42.60)
CIE-LCHlch(28.17, 55.26, 309.57°)
OKLaboklab(39.59% 0.0661 -0.1212)
OKLCHoklch(39.59% 0.138 298.6)
XYZxyz(8.7288, 5.5202, 22.7914)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F85 #62852F
analogous
#2F3785 #522F85 #7D2F85
triadic
#522F85 #85522F #2F8552
tetradic
#522F85 #852F37 #62852F #2F857D
square
#522F85 #852F37 #62852F #2F857D
split-complementary
#522F85 #857D2F #37852F
monochromatic
#1A0F2B #361F58 #522F85 #6E3FB2 #8E66C9

Accessibility & contrast

On white

9.98
#522F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F85
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F85#FFFFFF#000000##FFFFFF
##522F851.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#074283
Tritanopia (blue-blind)
#464255
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522f85;
/* rgb */ color: rgb(82, 47, 133);
/* oklch */ color: oklch(39.6% 0.138 298.6);
Tailwind
colors: {
  custom: {
    50: '#8769a9',
    500: '#522f85',
    950: '#000000',
  },
}
SCSS
$custom: #522f85;
$custom-light: #8769a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522f85",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 264.419,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39592,
    "c": 0.13805,
    "h": 298.6
  },
  "luminance": 0.0552
}

Semantic roles & 50–950 ramp

primary
#522F85
secondary
#8FB060
accent
#D750A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522F85

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

Preview Lab → · Contrast checker → · Palette generator →

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