#522F8D#522F8D

#522F8D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.148 H 296.2°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#522F8D
RGBrgb(82, 47, 141)
HSLhsl(262, 50%, 37%)
HSVhsv(262, 67%, 55%)
CMYKcmyk(41.8%, 66.7%, 0%, 44.7%)
CIE-LABlab(28.77, 37.44, -46.59)
CIE-LCHlch(28.77, 59.77, 308.79°)
OKLaboklab(40.22% 0.0654 -0.1329)
OKLCHoklch(40.22% 0.148 296.2)
XYZxyz(9.3027, 5.7498, 25.8138)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F8D #6A8D2F
analogous
#2F3B8D #522F8D #812F8D
triadic
#522F8D #8D522F #2F8D52
tetradic
#522F8D #8D2F3B #6A8D2F #2F8D81
square
#522F8D #8D2F3B #6A8D2F #2F8D81
split-complementary
#522F8D #8D812F #3B8D2F
monochromatic
#1D1031 #37205F #522F8D #6D3EBB #8E69CD

Accessibility & contrast

On white

9.77
#522F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#522F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F8D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F8D#FFFFFF#000000##FFFFFF
##522F8D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#434559
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522f8d;
/* rgb */ color: rgb(82, 47, 141);
/* oklch */ color: oklch(40.2% 0.148 296.2);
Tailwind
colors: {
  custom: {
    50: '#886aaf',
    500: '#522f8d',
    950: '#000000',
  },
}
SCSS
$custom: #522f8d;
$custom-light: #886aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#522f8d",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 262.34,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4022,
    "c": 0.14812,
    "h": 296.2
  },
  "luminance": 0.0575
}

Semantic roles & 50–950 ramp

primary
#522F8D
secondary
#96B464
accent
#DA4EA6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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