#522798#522798

#522798 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.172 H 294.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#522798
RGBrgb(82, 39, 152)
HSLhsl(263, 59%, 37%)
HSVhsv(263, 74%, 60%)
CMYKcmyk(46.1%, 74.3%, 0%, 40.4%)
CIE-LABlab(28.15, 44.74, -54.38)
CIE-LCHlch(28.15, 70.42, 309.45°)
OKLaboklab(40.06% 0.0718 -0.1558)
OKLCHoklch(40.06% 0.172 294.7)
XYZxyz(9.8712, 5.5116, 30.2434)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522798 #6D9827
analogous
#273498 #522798 #8B2798
triadic
#522798 #985227 #279852
tetradic
#522798 #982734 #6D9827 #27988B
square
#522798 #982734 #6D9827 #27988B
split-complementary
#522798 #988B27 #349827
monochromatic
#1D0E37 #381B67 #522798 #6C33C9 #8F63D7

Accessibility & contrast

On white

9.99
#522798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522798
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522798#FFFFFF#000000##FFFFFF
##5227981.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#3E445D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522798;
/* rgb */ color: rgb(82, 39, 152);
/* oklch */ color: oklch(40.1% 0.172 294.7);
Tailwind
colors: {
  custom: {
    50: '#8965b7',
    500: '#522798',
    950: '#000000',
  },
}
SCSS
$custom: #522798;
$custom-light: #8965b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522798",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 262.832,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40055,
    "c": 0.17153,
    "h": 294.7
  },
  "luminance": 0.05512
}

Semantic roles & 50–950 ramp

primary
#522798
secondary
#99BC5E
accent
#E245A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522798

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

Preview Lab → · Contrast checker → · Palette generator →

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