#522B86#522B86

#522B86 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.145 H 299.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#522B86
RGBrgb(82, 43, 134)
HSLhsl(266, 51%, 35%)
HSVhsv(266, 68%, 53%)
CMYKcmyk(38.8%, 67.9%, 0%, 47.5%)
CIE-LABlab(27.42, 37.73, -44.44)
CIE-LCHlch(27.42, 58.30, 310.33°)
OKLaboklab(39.07% 0.0709 -0.1266)
OKLCHoklch(39.07% 0.145 299.2)
XYZxyz(8.6456, 5.2427, 23.1061)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B86 #5F862B
analogous
#2B3286 #522B86 #7F2B86
triadic
#522B86 #86522B #2B8652
tetradic
#522B86 #862B32 #5F862B #2B867F
square
#522B86 #862B32 #5F862B #2B867F
split-complementary
#522B86 #867F2B #32862B
monochromatic
#190D29 #361C58 #522B86 #6E3AB4 #8E60CC

Accessibility & contrast

On white

10.25
#522B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B86
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B86#FFFFFF#000000##FFFFFF
##522B861.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#464054
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522b86;
/* rgb */ color: rgb(82, 43, 134);
/* oklch */ color: oklch(39.1% 0.145 299.2);
Tailwind
colors: {
  custom: {
    50: '#8767aa',
    500: '#522b86',
    950: '#000000',
  },
}
SCSS
$custom: #522b86;
$custom-light: #8767aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522b86",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 134
  },
  "hsl": {
    "h": 265.714,
    "s": 51.412,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39073,
    "c": 0.14506,
    "h": 299.2
  },
  "luminance": 0.05243
}

Semantic roles & 50–950 ramp

primary
#522B86
secondary
#8DB25B
accent
#DB4D9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522B86

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

Preview Lab → · Contrast checker → · Palette generator →

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