#522F8E#522F8E

#522F8E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.149 H 295.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#522F8E
RGBrgb(82, 47, 142)
HSLhsl(262, 50%, 37%)
HSVhsv(262, 67%, 56%)
CMYKcmyk(42.3%, 66.9%, 0%, 44.3%)
CIE-LABlab(28.85, 37.72, -47.08)
CIE-LCHlch(28.85, 60.33, 308.70°)
OKLaboklab(40.3% 0.0653 -0.1344)
OKLCHoklch(40.3% 0.149 295.9)
XYZxyz(9.3774, 5.7797, 26.2075)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F8E #6B8E2F
analogous
#2F3C8E #522F8E #822F8E
triadic
#522F8E #8E522F #2F8E52
tetradic
#522F8E #8E2F3C #6B8E2F #2F8E82
square
#522F8E #8E2F3C #6B8E2F #2F8E82
split-complementary
#522F8E #8E822F #3C8E2F
monochromatic
#1D1132 #372060 #522F8E #6D3EBC #8F6ACE

Accessibility & contrast

On white

9.74
#522F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#522F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F8E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F8E#FFFFFF#000000##FFFFFF
##522F8E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#43455A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522f8e;
/* rgb */ color: rgb(82, 47, 142);
/* oklch */ color: oklch(40.3% 0.149 295.9);
Tailwind
colors: {
  custom: {
    50: '#886ab0',
    500: '#522f8e',
    950: '#000000',
  },
}
SCSS
$custom: #522f8e;
$custom-light: #886ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#522f8e",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 262.105,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40301,
    "c": 0.14938,
    "h": 295.9
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#522F8E
secondary
#97B564
accent
#DA4EA6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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