#522B94#522B94

#522B94 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.162 H 295.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#522B94
RGBrgb(82, 43, 148)
HSLhsl(262, 55%, 37%)
HSVhsv(262, 71%, 58%)
CMYKcmyk(44.6%, 70.9%, 0%, 42%)
CIE-LABlab(28.54, 41.59, -51.29)
CIE-LCHlch(28.54, 66.03, 309.04°)
OKLaboklab(40.23% 0.0687 -0.1467)
OKLCHoklch(40.23% 0.162 295.1)
XYZxyz(9.6874, 5.6595, 28.5932)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B94 #6D942B
analogous
#2B3894 #522B94 #872B94
triadic
#522B94 #94522B #2B9452
tetradic
#522B94 #942B38 #6D942B #2B9487
square
#522B94 #942B38 #6D942B #2B9487
split-complementary
#522B94 #94872B #38942B
monochromatic
#1D0F35 #381D65 #522B94 #6C39C3 #8F67D3

Accessibility & contrast

On white

9.85
#522B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#522B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B94
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B94#FFFFFF#000000##FFFFFF
##522B941.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#40455C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522b94;
/* rgb */ color: rgb(82, 43, 148);
/* oklch */ color: oklch(40.2% 0.162 295.1);
Tailwind
colors: {
  custom: {
    50: '#8968b4',
    500: '#522b94',
    950: '#000000',
  },
}
SCSS
$custom: #522b94;
$custom-light: #8968b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522b94",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 262.286,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40227,
    "c": 0.16201,
    "h": 295.1
  },
  "luminance": 0.0566
}

Semantic roles & 50–950 ramp

primary
#522B94
secondary
#99B962
accent
#DE49A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522B94

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

Preview Lab → · Contrast checker → · Palette generator →

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