#522A7F#522A7F

#522A7F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.138 H 301.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#522A7F
RGBrgb(82, 42, 127)
HSLhsl(268, 50%, 33%)
HSVhsv(268, 67%, 50%)
CMYKcmyk(35.4%, 66.9%, 0%, 50.2%)
CIE-LABlab(26.68, 36.39, -41.24)
CIE-LCHlch(26.68, 55.00, 311.43°)
OKLaboklab(38.38% 0.0728 -0.1172)
OKLCHoklch(38.38% 0.138 301.9)
XYZxyz(8.1375, 4.9820, 20.6075)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A7F #577F2A
analogous
#2A2C7F #522A7F #7C2A7F
triadic
#522A7F #7F522A #2A7F52
tetradic
#522A7F #7F2A2C #577F2A #2A7F7C
square
#522A7F #7F2A2C #577F2A #2A7F7C
split-complementary
#522A7F #7F7C2A #2C7F2A
monochromatic
#170C23 #341B51 #522A7F #7039AD #8E5BC9

Accessibility & contrast

On white

10.52
#522A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A7F
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A7F#FFFFFF#000000##FFFFFF
##522A7F1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#083F7D
Tritanopia (blue-blind)
#493D50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522a7f;
/* rgb */ color: rgb(82, 42, 127);
/* oklch */ color: oklch(38.4% 0.138 301.9);
Tailwind
colors: {
  custom: {
    50: '#8666a5',
    500: '#522a7f',
    950: '#000000',
  },
}
SCSS
$custom: #522a7f;
$custom-light: #8666a5;
$custom-dark: #000000;
JSON
{
  "hex": "#522a7f",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 268.235,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38377,
    "c": 0.13794,
    "h": 301.9
  },
  "luminance": 0.04982
}

Semantic roles & 50–950 ramp

primary
#522A7F
secondary
#85AE57
accent
#DA4E98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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