#522B88#522B88

#522B88 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.148 H 298.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#522B88
RGBrgb(82, 43, 136)
HSLhsl(265, 52%, 35%)
HSVhsv(265, 68%, 53%)
CMYKcmyk(39.7%, 68.4%, 0%, 46.7%)
CIE-LABlab(27.57, 38.28, -45.44)
CIE-LCHlch(27.57, 59.41, 310.11°)
OKLaboklab(39.23% 0.0706 -0.1295)
OKLCHoklch(39.23% 0.148 298.6)
XYZxyz(8.7864, 5.2990, 23.8477)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B88 #61882B
analogous
#2B3388 #522B88 #802B88
triadic
#522B88 #88522B #2B8852
tetradic
#522B88 #882B33 #61882B #2B8880
square
#522B88 #882B33 #61882B #2B8880
split-complementary
#522B88 #88802B #33882B
monochromatic
#1A0E2B #361C5A #522B88 #6E3AB6 #8E61CD

Accessibility & contrast

On white

10.20
#522B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B88
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B88#FFFFFF#000000##FFFFFF
##522B881.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#454155
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522b88;
/* rgb */ color: rgb(82, 43, 136);
/* oklch */ color: oklch(39.2% 0.148 298.6);
Tailwind
colors: {
  custom: {
    50: '#8767ab',
    500: '#522b88',
    950: '#000000',
  },
}
SCSS
$custom: #522b88;
$custom-light: #8767ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522b88",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 136
  },
  "hsl": {
    "h": 265.161,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39233,
    "c": 0.14751,
    "h": 298.6
  },
  "luminance": 0.05299
}

Semantic roles & 50–950 ramp

primary
#522B88
secondary
#8EB35C
accent
#DB4C9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522B88

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

Preview Lab → · Contrast checker → · Palette generator →

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