#522E98#522E98

#522E98 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.163 H 293.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#522E98
RGBrgb(82, 46, 152)
HSLhsl(260, 54%, 39%)
HSVhsv(260, 70%, 60%)
CMYKcmyk(46.1%, 69.7%, 0%, 40.4%)
CIE-LABlab(29.45, 41.10, -52.25)
CIE-LCHlch(29.45, 66.48, 308.19°)
OKLaboklab(40.98% 0.0649 -0.1496)
OKLCHoklch(40.98% 0.163 293.5)
XYZxyz(10.1226, 6.0145, 30.3273)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E98 #74982E
analogous
#2E3F98 #522E98 #872E98
triadic
#522E98 #98522E #2E9852
tetradic
#522E98 #982E3F #74982E #2E9887
square
#522E98 #982E3F #74982E #2E9887
split-complementary
#522E98 #98872E #3F982E
monochromatic
#1F123A #392069 #522E98 #6C3EC5 #906DD3

Accessibility & contrast

On white

9.53
#522E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#522E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E98
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E98#FFFFFF#000000##FFFFFF
##522E981.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#3E485F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522e98;
/* rgb */ color: rgb(82, 46, 152);
/* oklch */ color: oklch(41.0% 0.163 293.5);
Tailwind
colors: {
  custom: {
    50: '#8969b7',
    500: '#522e98',
    950: '#000000',
  },
}
SCSS
$custom: #522e98;
$custom-light: #8969b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522e98",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 260.377,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40982,
    "c": 0.16305,
    "h": 293.5
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#522E98
secondary
#9EBA68
accent
#DD4BAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522E98

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

Preview Lab → · Contrast checker → · Palette generator →

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