#522088#522088

#522088 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.161 H 300.6°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#522088
RGBrgb(82, 32, 136)
HSLhsl(269, 62%, 33%)
HSVhsv(269, 76%, 53%)
CMYKcmyk(39.7%, 76.5%, 0%, 46.7%)
CIE-LABlab(25.58, 43.85, -48.68)
CIE-LCHlch(25.58, 65.52, 312.01°)
OKLaboklab(37.81% 0.0822 -0.139)
OKLCHoklch(37.81% 0.161 300.6)
XYZxyz(8.4390, 4.6044, 23.7319)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522088 #568820
analogous
#202288 #522088 #862088
triadic
#522088 #885220 #208852
tetradic
#522088 #882022 #568820 #208886
square
#522088 #882022 #568820 #208886
split-complementary
#522088 #888620 #228820
monochromatic
#160925 #341456 #522088 #702CBA #8F4DD5

Accessibility & contrast

On white

10.93
#522088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#522088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522088
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522088#FFFFFF#000000##FFFFFF
##5220881.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#463B52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522088;
/* rgb */ color: rgb(82, 32, 136);
/* oklch */ color: oklch(37.8% 0.161 300.6);
Tailwind
colors: {
  custom: {
    50: '#8861ac',
    500: '#522088',
    950: '#000000',
  },
}
SCSS
$custom: #522088;
$custom-light: #8861ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522088",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 136
  },
  "hsl": {
    "h": 268.846,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37814,
    "c": 0.16149,
    "h": 300.6
  },
  "luminance": 0.04604
}

Semantic roles & 50–950 ramp

primary
#522088
secondary
#84B84C
accent
#E54397
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522088

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

Preview Lab → · Contrast checker → · Palette generator →

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