#522388#522388

#522388 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.158 H 300.1°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#522388
RGBrgb(82, 35, 136)
HSLhsl(268, 59%, 34%)
HSVhsv(268, 74%, 53%)
CMYKcmyk(39.7%, 74.3%, 0%, 46.7%)
CIE-LABlab(26.08, 42.43, -47.86)
CIE-LCHlch(26.08, 63.96, 311.56°)
OKLaboklab(38.17% 0.0793 -0.1366)
OKLCHoklch(38.17% 0.158 300.1)
XYZxyz(8.5235, 4.7734, 23.7601)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522388 #598823
analogous
#232688 #522388 #842388
triadic
#522388 #885223 #238852
tetradic
#522388 #882326 #598823 #238884
square
#522388 #882326 #598823 #238884
split-complementary
#522388 #888423 #268823
monochromatic
#170A27 #351657 #522388 #6F30B9 #8E53D3

Accessibility & contrast

On white

10.74
#522388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#522388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522388
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522388#FFFFFF#000000##FFFFFF
##5223881.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522388;
/* rgb */ color: rgb(82, 35, 136);
/* oklch */ color: oklch(38.2% 0.158 300.1);
Tailwind
colors: {
  custom: {
    50: '#8862ab',
    500: '#522388',
    950: '#000000',
  },
}
SCSS
$custom: #522388;
$custom-light: #8862ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522388",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 267.921,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38169,
    "c": 0.15793,
    "h": 300.1
  },
  "luminance": 0.04773
}

Semantic roles & 50–950 ramp

primary
#522388
secondary
#87B750
accent
#E24699
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522388

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

Preview Lab → · Contrast checker → · Palette generator →

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