#522689#522689

#522689 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.155 H 299.3°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#522689
RGBrgb(82, 38, 137)
HSLhsl(267, 57%, 34%)
HSVhsv(267, 72%, 54%)
CMYKcmyk(40.1%, 72.3%, 0%, 46.3%)
CIE-LABlab(26.70, 41.19, -47.48)
CIE-LCHlch(26.70, 62.86, 310.94°)
OKLaboklab(38.63% 0.076 -0.1355)
OKLCHoklch(38.63% 0.155 299.3)
XYZxyz(8.6870, 4.9861, 24.1668)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522689 #5D8926
analogous
#262C89 #522689 #842689
triadic
#522689 #895226 #268952
tetradic
#522689 #89262C #5D8926 #268984
square
#522689 #89262C #5D8926 #268984
split-complementary
#522689 #898426 #2C8926
monochromatic
#190B29 #351959 #522689 #6F33B9 #8E59D1

Accessibility & contrast

On white

10.51
#522689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522689
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522689#FFFFFF#000000##FFFFFF
##5226891.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#453E55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522689;
/* rgb */ color: rgb(82, 38, 137);
/* oklch */ color: oklch(38.6% 0.155 299.3);
Tailwind
colors: {
  custom: {
    50: '#8864ac',
    500: '#522689',
    950: '#000000',
  },
}
SCSS
$custom: #522689;
$custom-light: #8864ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522689",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 137
  },
  "hsl": {
    "h": 266.667,
    "s": 56.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38632,
    "c": 0.15534,
    "h": 299.3
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#522689
secondary
#8BB655
accent
#E0489C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522689

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

Preview Lab → · Contrast checker → · Palette generator →

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