#522889#522889

#522889 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.153 H 298.9°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#522889
RGBrgb(82, 40, 137)
HSLhsl(266, 55%, 35%)
HSVhsv(266, 71%, 54%)
CMYKcmyk(40.1%, 70.8%, 0%, 46.3%)
CIE-LABlab(27.07, 40.16, -46.88)
CIE-LCHlch(27.07, 61.72, 310.59°)
OKLaboklab(38.9% 0.0738 -0.1337)
OKLCHoklch(38.9% 0.153 298.9)
XYZxyz(8.7527, 5.1175, 24.1887)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522889 #5F8928
analogous
#282F89 #522889 #822889
triadic
#522889 #895228 #288952
tetradic
#522889 #89282F #5F8928 #288982
square
#522889 #89282F #5F8928 #288982
split-complementary
#522889 #898228 #2F8928
monochromatic
#190C2A #361A5A #522889 #6E36B8 #8E5CCF

Accessibility & contrast

On white

10.38
#522889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522889
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522889#FFFFFF#000000##FFFFFF
##5228891.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#453F55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522889;
/* rgb */ color: rgb(82, 40, 137);
/* oklch */ color: oklch(38.9% 0.153 298.9);
Tailwind
colors: {
  custom: {
    50: '#8865ac',
    500: '#522889',
    950: '#000000',
  },
}
SCSS
$custom: #522889;
$custom-light: #8865ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522889",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 265.979,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38897,
    "c": 0.15275,
    "h": 298.9
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

primary
#522889
secondary
#8DB558
accent
#DE4A9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522889

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

Preview Lab → · Contrast checker → · Palette generator →

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