#522E88#522E88

#522E88 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.143 H 297.9°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#522E88
RGBrgb(82, 46, 136)
HSLhsl(264, 49%, 36%)
HSVhsv(264, 66%, 53%)
CMYKcmyk(39.7%, 66.2%, 0%, 46.7%)
CIE-LABlab(28.18, 36.61, -44.44)
CIE-LCHlch(28.18, 57.58, 309.48°)
OKLaboklab(39.67% 0.0671 -0.1266)
OKLCHoklch(39.67% 0.143 297.9)
XYZxyz(8.8995, 5.5253, 23.8854)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E88 #64882E
analogous
#2E3788 #522E88 #7F2E88
triadic
#522E88 #88522E #2E8852
tetradic
#522E88 #882E37 #64882E #2E887F
square
#522E88 #882E37 #64882E #2E887F
split-complementary
#522E88 #887F2E #37882E
monochromatic
#1B0F2D #361F5A #522E88 #6E3DB6 #8E65CB

Accessibility & contrast

On white

9.98
#522E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#522E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E88
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E88#FFFFFF#000000##FFFFFF
##522E881.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#454256
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522e88;
/* rgb */ color: rgb(82, 46, 136);
/* oklch */ color: oklch(39.7% 0.143 297.9);
Tailwind
colors: {
  custom: {
    50: '#8769ab',
    500: '#522e88',
    950: '#000000',
  },
}
SCSS
$custom: #522e88;
$custom-light: #8769ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522e88",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 264,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39673,
    "c": 0.14328,
    "h": 297.9
  },
  "luminance": 0.05525
}

Semantic roles & 50–950 ramp

primary
#522E88
secondary
#91B260
accent
#D94FA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522E88

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

Preview Lab → · Contrast checker → · Palette generator →

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