#522A8F#522A8F

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

Color values

HEX#522A8F
RGBrgb(82, 42, 143)
HSLhsl(264, 55%, 36%)
HSVhsv(264, 71%, 56%)
CMYKcmyk(42.7%, 70.6%, 0%, 43.9%)
CIE-LABlab(27.93, 40.74, -49.19)
CIE-LCHlch(27.93, 63.87, 309.63°)
OKLaboklab(39.67% 0.0707 -0.1405)
OKLCHoklch(39.67% 0.157 296.7)
XYZxyz(9.2643, 5.4328, 26.5418)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A8F #678F2A
analogous
#2A358F #522A8F #852A8F
triadic
#522A8F #8F522A #2A8F52
tetradic
#522A8F #8F2A35 #678F2A #2A8F85
square
#522A8F #8F2A35 #678F2A #2A8F85
split-complementary
#522A8F #8F852A #358F2A
monochromatic
#1C0E30 #371C60 #522A8F #6D38BE #8E62D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522A8F#FFFFFF#000000##FFFFFF
##522A8F1.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)
#004292
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#424359
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522a8f;
/* rgb */ color: rgb(82, 42, 143);
/* oklch */ color: oklch(39.7% 0.157 296.7);
Tailwind
colors: {
  custom: {
    50: '#8867b1',
    500: '#522a8f',
    950: '#000000',
  },
}
SCSS
$custom: #522a8f;
$custom-light: #8867b1;
$custom-dark: #000000;
JSON
{
  "hex": "#522a8f",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 263.762,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39668,
    "c": 0.1573,
    "h": 296.7
  },
  "luminance": 0.05433
}

Semantic roles & 50–950 ramp

primary
#522A8F
secondary
#94B75E
accent
#DE4AA3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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