#522989#522989

#522989 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.151 H 298.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#522989
RGBrgb(82, 41, 137)
HSLhsl(266, 54%, 35%)
HSVhsv(266, 70%, 54%)
CMYKcmyk(40.1%, 70.1%, 0%, 46.3%)
CIE-LABlab(27.26, 39.63, -46.57)
CIE-LCHlch(27.26, 61.15, 310.40°)
OKLaboklab(39.03% 0.0727 -0.1328)
OKLCHoklch(39.03% 0.151 298.7)
XYZxyz(8.7868, 5.1857, 24.2001)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522989 #608929
analogous
#293089 #522989 #822989
triadic
#522989 #895229 #298952
tetradic
#522989 #892930 #608929 #298982
square
#522989 #892930 #608929 #298982
split-complementary
#522989 #898229 #308929
monochromatic
#1A0D2B #361B5A #522989 #6E37B8 #8E5ECF

Accessibility & contrast

On white

10.31
#522989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522989
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522989#FFFFFF#000000##FFFFFF
##5229891.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522989;
/* rgb */ color: rgb(82, 41, 137);
/* oklch */ color: oklch(39.0% 0.151 298.7);
Tailwind
colors: {
  custom: {
    50: '#8866ac',
    500: '#522989',
    950: '#000000',
  },
}
SCSS
$custom: #522989;
$custom-light: #8866ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522989",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 265.625,
    "s": 53.933,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39033,
    "c": 0.15142,
    "h": 298.7
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

primary
#522989
secondary
#8EB45A
accent
#DD4A9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522989

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

Preview Lab → · Contrast checker → · Palette generator →

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