#522488#522488

#522488 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.157 H 300.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#522488
RGBrgb(82, 36, 136)
HSLhsl(268, 58%, 34%)
HSVhsv(268, 74%, 53%)
CMYKcmyk(39.7%, 73.5%, 0%, 46.7%)
CIE-LABlab(26.25, 41.93, -47.57)
CIE-LCHlch(26.25, 63.42, 311.39°)
OKLaboklab(38.29% 0.0783 -0.1358)
OKLCHoklch(38.29% 0.157 300)
XYZxyz(8.5534, 4.8331, 23.7700)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522488 #5A8824
analogous
#242888 #522488 #842488
triadic
#522488 #885224 #248852
tetradic
#522488 #882428 #5A8824 #248884
square
#522488 #882428 #5A8824 #248884
split-complementary
#522488 #888424 #288824
monochromatic
#180A27 #351758 #522488 #6F31B8 #8E55D2

Accessibility & contrast

On white

10.68
#522488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522488 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522488
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522488#FFFFFF#000000##FFFFFF
##5224881.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#463D53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522488;
/* rgb */ color: rgb(82, 36, 136);
/* oklch */ color: oklch(38.3% 0.157 300.0);
Tailwind
colors: {
  custom: {
    50: '#8863ab',
    500: '#522488',
    950: '#000000',
  },
}
SCSS
$custom: #522488;
$custom-light: #8863ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522488",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 136
  },
  "hsl": {
    "h": 267.6,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38293,
    "c": 0.1567,
    "h": 300
  },
  "luminance": 0.04833
}

Semantic roles & 50–950 ramp

primary
#522488
secondary
#88B652
accent
#E1469A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522488

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

Preview Lab → · Contrast checker → · Palette generator →

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