#522F82#522F82

#522F82 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.134 H 299.6°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#522F82
RGBrgb(82, 47, 130)
HSLhsl(265, 47%, 35%)
HSVhsv(265, 64%, 51%)
CMYKcmyk(36.9%, 63.8%, 0%, 49%)
CIE-LABlab(27.95, 34.37, -41.08)
CIE-LCHlch(27.95, 53.56, 309.92°)
OKLaboklab(39.36% 0.0663 -0.1167)
OKLCHoklch(39.36% 0.134 299.6)
XYZxyz(8.5245, 5.4385, 21.7154)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F82 #5F822F
analogous
#2F3682 #522F82 #7C2F82
triadic
#522F82 #82522F #2F8252
tetradic
#522F82 #822F36 #5F822F #2F827C
square
#522F82 #822F36 #5F822F #2F827C
split-complementary
#522F82 #827C2F #36822F
monochromatic
#190E28 #361F55 #522F82 #6E3FAF #8E64C7

Accessibility & contrast

On white

10.06
#522F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#522F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F82
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F82#FFFFFF#000000##FFFFFF
##522F821.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#0E4180
Tritanopia (blue-blind)
#474154
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522f82;
/* rgb */ color: rgb(82, 47, 130);
/* oklch */ color: oklch(39.4% 0.134 299.6);
Tailwind
colors: {
  custom: {
    50: '#8669a7',
    500: '#522f82',
    950: '#000000',
  },
}
SCSS
$custom: #522f82;
$custom-light: #8669a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522f82",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 265.301,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39364,
    "c": 0.13424,
    "h": 299.6
  },
  "luminance": 0.05439
}

Semantic roles & 50–950 ramp

primary
#522F82
secondary
#8DAE5F
accent
#D7519E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522F82

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

Preview Lab → · Contrast checker → · Palette generator →

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