#522E94#522E94

#522E94 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.158 H 294.5°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#522E94
RGBrgb(82, 46, 148)
HSLhsl(261, 53%, 38%)
HSVhsv(261, 69%, 58%)
CMYKcmyk(44.6%, 68.9%, 0%, 42%)
CIE-LABlab(29.12, 39.97, -50.33)
CIE-LCHlch(29.12, 64.27, 308.45°)
OKLaboklab(40.65% 0.0656 -0.1439)
OKLCHoklch(40.65% 0.158 294.5)
XYZxyz(9.8005, 5.8857, 28.6309)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E94 #70942E
analogous
#2E3D94 #522E94 #852E94
triadic
#522E94 #94522E #2E9452
tetradic
#522E94 #942E3D #70942E #2E9485
square
#522E94 #942E3D #70942E #2E9485
split-complementary
#522E94 #94852E #3D942E
monochromatic
#1E1137 #381F65 #522E94 #6C3DC3 #8F6BD1

Accessibility & contrast

On white

9.65
#522E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#522E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E94
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E94#FFFFFF#000000##FFFFFF
##522E941.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#40475D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522e94;
/* rgb */ color: rgb(82, 46, 148);
/* oklch */ color: oklch(40.6% 0.158 294.5);
Tailwind
colors: {
  custom: {
    50: '#8869b4',
    500: '#522e94',
    950: '#000000',
  },
}
SCSS
$custom: #522e94;
$custom-light: #8869b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522e94",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 148
  },
  "hsl": {
    "h": 261.176,
    "s": 52.577,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40646,
    "c": 0.15815,
    "h": 294.5
  },
  "luminance": 0.05886
}

Semantic roles & 50–950 ramp

primary
#522E94
secondary
#9BB866
accent
#DC4CA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522E94

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

Preview Lab → · Contrast checker → · Palette generator →

#522E94 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva