#522B8D#522B8D

#522B8D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.154 H 297.1°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#522B8D
RGBrgb(82, 43, 141)
HSLhsl(264, 53%, 36%)
HSVhsv(264, 70%, 55%)
CMYKcmyk(41.8%, 69.5%, 0%, 44.7%)
CIE-LABlab(27.97, 39.65, -47.90)
CIE-LCHlch(27.97, 62.18, 309.62°)
OKLaboklab(39.64% 0.0699 -0.1367)
OKLCHoklch(39.64% 0.154 297.1)
XYZxyz(9.1500, 5.4445, 25.7630)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B8D #668D2B
analogous
#2B358D #522B8D #832B8D
triadic
#522B8D #8D522B #2B8D52
tetradic
#522B8D #8D2B35 #668D2B #2B8D83
square
#522B8D #8D2B35 #668D2B #2B8D83
split-complementary
#522B8D #8D832B #358D2B
monochromatic
#1B0E2F #371D5E #522B8D #6D39BC #8E63CF

Accessibility & contrast

On white

10.05
#522B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522B8D
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B8D#FFFFFF#000000##FFFFFF
##522B8D1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#434258
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522b8d;
/* rgb */ color: rgb(82, 43, 141);
/* oklch */ color: oklch(39.6% 0.154 297.1);
Tailwind
colors: {
  custom: {
    50: '#8867af',
    500: '#522b8d',
    950: '#000000',
  },
}
SCSS
$custom: #522b8d;
$custom-light: #8867af;
$custom-dark: #000000;
JSON
{
  "hex": "#522b8d",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 263.878,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3964,
    "c": 0.15358,
    "h": 297.1
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#522B8D
secondary
#93B65E
accent
#DD4BA3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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