#522394#522394

#522394 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.171 H 296.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#522394
RGBrgb(82, 35, 148)
HSLhsl(265, 62%, 36%)
HSVhsv(265, 76%, 58%)
CMYKcmyk(44.6%, 76.4%, 0%, 42%)
CIE-LABlab(27.11, 45.60, -53.61)
CIE-LCHlch(27.11, 70.38, 310.38°)
OKLaboklab(39.22% 0.0765 -0.1535)
OKLCHoklch(39.22% 0.171 296.5)
XYZxyz(9.4246, 5.1338, 28.5056)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522394 #659423
analogous
#232C94 #522394 #8A2394
triadic
#522394 #945223 #239452
tetradic
#522394 #94232C #659423 #23948A
square
#522394 #94232C #659423 #23948A
split-complementary
#522394 #948A23 #2C9423
monochromatic
#1B0C31 #371763 #522394 #6D2FC5 #8E5AD8

Accessibility & contrast

On white

10.36
#522394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522394
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522394#FFFFFF#000000##FFFFFF
##5223941.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#40415A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522394;
/* rgb */ color: rgb(82, 35, 148);
/* oklch */ color: oklch(39.2% 0.171 296.5);
Tailwind
colors: {
  custom: {
    50: '#8963b4',
    500: '#522394',
    950: '#000000',
  },
}
SCSS
$custom: #522394;
$custom-light: #8963b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522394",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 264.956,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39219,
    "c": 0.17148,
    "h": 296.5
  },
  "luminance": 0.05134
}

Semantic roles & 50–950 ramp

primary
#522394
secondary
#92BC57
accent
#E543A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522394

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

Preview Lab → · Contrast checker → · Palette generator →

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