#522F8B#522F8B

#522F8B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.146 H 296.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#522F8B
RGBrgb(82, 47, 139)
HSLhsl(263, 49%, 36%)
HSVhsv(263, 66%, 55%)
CMYKcmyk(41%, 66.2%, 0%, 45.5%)
CIE-LABlab(28.62, 36.88, -45.60)
CIE-LCHlch(28.62, 58.65, 308.96°)
OKLaboklab(40.06% 0.0656 -0.13)
OKLCHoklch(40.06% 0.146 296.8)
XYZxyz(9.1552, 5.6908, 25.0372)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F8B #688B2F
analogous
#2F3A8B #522F8B #802F8B
triadic
#522F8B #8B522F #2F8B52
tetradic
#522F8B #8B2F3A #688B2F #2F8B80
square
#522F8B #8B2F3A #688B2F #2F8B80
split-complementary
#522F8B #8B802F #3A8B2F
monochromatic
#1C1030 #37205D #522F8B #6D3EB9 #8E68CC

Accessibility & contrast

On white

9.82
#522F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#522F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F8B
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F8B#FFFFFF#000000##FFFFFF
##522F8B1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#444458
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522f8b;
/* rgb */ color: rgb(82, 47, 139);
/* oklch */ color: oklch(40.1% 0.146 296.8);
Tailwind
colors: {
  custom: {
    50: '#876aae',
    500: '#522f8b',
    950: '#000000',
  },
}
SCSS
$custom: #522f8b;
$custom-light: #876aae;
$custom-dark: #000000;
JSON
{
  "hex": "#522f8b",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 262.826,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40061,
    "c": 0.14562,
    "h": 296.8
  },
  "luminance": 0.05691
}

Semantic roles & 50–950 ramp

primary
#522F8B
secondary
#95B363
accent
#D94FA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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