#522789#522789

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

Color values

HEX#522789
RGBrgb(82, 39, 137)
HSLhsl(266, 56%, 35%)
HSVhsv(266, 72%, 54%)
CMYKcmyk(40.1%, 71.5%, 0%, 46.3%)
CIE-LABlab(26.88, 40.68, -47.18)
CIE-LCHlch(26.88, 62.30, 310.77°)
OKLaboklab(38.76% 0.0749 -0.1346)
OKLCHoklch(38.76% 0.154 299.1)
XYZxyz(8.7194, 5.0509, 24.1776)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522789 #5E8927
analogous
#272D89 #522789 #832789
triadic
#522789 #895227 #278952
tetradic
#522789 #89272D #5E8927 #278983
square
#522789 #89272D #5E8927 #278983
split-complementary
#522789 #898327 #2D8927
monochromatic
#190C2A #351959 #522789 #6F35B9 #8E5AD0

Accessibility & contrast

On white

10.45
#522789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522789
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522789#FFFFFF#000000##FFFFFF
##5227891.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522789;
/* rgb */ color: rgb(82, 39, 137);
/* oklch */ color: oklch(38.8% 0.154 299.1);
Tailwind
colors: {
  custom: {
    50: '#8865ac',
    500: '#522789',
    950: '#000000',
  },
}
SCSS
$custom: #522789;
$custom-light: #8865ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522789",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 266.327,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38763,
    "c": 0.15406,
    "h": 299.1
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#522789
secondary
#8CB557
accent
#DF499D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522789

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

Preview Lab → · Contrast checker → · Palette generator →

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