#522998#522998

#522998 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.169 H 294.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#522998
RGBrgb(82, 41, 152)
HSLhsl(262, 58%, 38%)
HSVhsv(262, 73%, 60%)
CMYKcmyk(46.1%, 73%, 0%, 40.4%)
CIE-LABlab(28.50, 43.74, -53.80)
CIE-LCHlch(28.50, 69.33, 309.11°)
OKLaboklab(40.31% 0.0699 -0.1541)
OKLCHoklch(40.31% 0.169 294.4)
XYZxyz(9.9386, 5.6464, 30.2659)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522998 #6F9829
analogous
#293898 #522998 #892998
triadic
#522998 #985229 #299852
tetradic
#522998 #982938 #6F9829 #299889
square
#522998 #982938 #6F9829 #299889
split-complementary
#522998 #988929 #389829
monochromatic
#1E0F38 #381C68 #522998 #6C36C8 #8F66D6

Accessibility & contrast

On white

9.86
#522998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#522998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522998
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522998#FFFFFF#000000##FFFFFF
##5229981.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#3E455E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522998;
/* rgb */ color: rgb(82, 41, 152);
/* oklch */ color: oklch(40.3% 0.169 294.4);
Tailwind
colors: {
  custom: {
    50: '#8967b7',
    500: '#522998',
    950: '#000000',
  },
}
SCSS
$custom: #522998;
$custom-light: #8967b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522998",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 262.162,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40308,
    "c": 0.16919,
    "h": 294.4
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#522998
secondary
#9ABC61
accent
#E147A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522998

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

Preview Lab → · Contrast checker → · Palette generator →

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