#522396#522396

#522396 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.174 H 295.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#522396
RGBrgb(82, 35, 150)
HSLhsl(265, 62%, 36%)
HSVhsv(265, 77%, 59%)
CMYKcmyk(45.3%, 76.7%, 0%, 41.2%)
CIE-LABlab(27.29, 46.13, -54.55)
CIE-LCHlch(27.29, 71.44, 310.22°)
OKLaboklab(39.4% 0.0759 -0.1562)
OKLCHoklch(39.4% 0.174 295.9)
XYZxyz(9.5843, 5.1977, 29.3465)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522396 #679623
analogous
#232E96 #522396 #8C2396
triadic
#522396 #965223 #239652
tetradic
#522396 #96232E #679623 #23968C
square
#522396 #96232E #679623 #23968C
split-complementary
#522396 #968C23 #2E9623
monochromatic
#1C0C33 #371764 #522396 #6D2FC8 #8E5BD9

Accessibility & contrast

On white

10.30
#522396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522396
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522396#FFFFFF#000000##FFFFFF
##5223961.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#3F425B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522396;
/* rgb */ color: rgb(82, 35, 150);
/* oklch */ color: oklch(39.4% 0.174 295.9);
Tailwind
colors: {
  custom: {
    50: '#8a63b6',
    500: '#522396',
    950: '#000000',
  },
}
SCSS
$custom: #522396;
$custom-light: #8a63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522396",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 264.522,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39399,
    "c": 0.17373,
    "h": 295.9
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

primary
#522396
secondary
#94BD58
accent
#E543A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522396

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

Preview Lab → · Contrast checker → · Palette generator →

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