#522986#522986

#522986 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.148 H 299.7°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#522986
RGBrgb(82, 41, 134)
HSLhsl(266, 53%, 34%)
HSVhsv(266, 69%, 53%)
CMYKcmyk(38.8%, 69.4%, 0%, 47.5%)
CIE-LABlab(27.02, 38.82, -45.08)
CIE-LCHlch(27.02, 59.49, 310.73°)
OKLaboklab(38.79% 0.0732 -0.1285)
OKLCHoklch(38.79% 0.148 299.7)
XYZxyz(8.5746, 5.1009, 23.0824)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522986 #5D8629
analogous
#292E86 #522986 #812986
triadic
#522986 #865229 #298652
tetradic
#522986 #86292E #5D8629 #298681
square
#522986 #86292E #5D8629 #298681
split-complementary
#522986 #868129 #2E8629
monochromatic
#190C28 #351B57 #522986 #6F37B5 #8E5CCD

Accessibility & contrast

On white

10.40
#522986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522986
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522986#FFFFFF#000000##FFFFFF
##5229861.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#463F54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522986;
/* rgb */ color: rgb(82, 41, 134);
/* oklch */ color: oklch(38.8% 0.148 299.7);
Tailwind
colors: {
  custom: {
    50: '#8766aa',
    500: '#522986',
    950: '#000000',
  },
}
SCSS
$custom: #522986;
$custom-light: #8766aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522986",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 266.452,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38789,
    "c": 0.14784,
    "h": 299.7
  },
  "luminance": 0.05101
}

Semantic roles & 50–950 ramp

primary
#522986
secondary
#8BB358
accent
#DD4B9C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522986

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

Preview Lab → · Contrast checker → · Palette generator →

#522986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva