#522774#522774

#522774 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.129 H 306.9°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#522774
RGBrgb(82, 39, 116)
HSLhsl(274, 50%, 30%)
HSVhsv(274, 66%, 45%)
CMYKcmyk(29.3%, 66.4%, 0%, 54.5%)
CIE-LABlab(25.28, 35.16, -36.53)
CIE-LCHlch(25.28, 50.70, 313.91°)
OKLaboklab(37.11% 0.0775 -0.1033)
OKLCHoklch(37.11% 0.129 306.9)
XYZxyz(7.3569, 4.5059, 17.0018)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522774 #497427
analogous
#2B2774 #522774 #74276F
triadic
#522774 #745227 #277452
tetradic
#522774 #742B27 #497427 #276F74
square
#522774 #742B27 #497427 #276F74
split-complementary
#522774 #6F7427 #27742B
monochromatic
#110818 #321846 #522774 #7236A2 #9151C4

Accessibility & contrast

On white

11.05
#522774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#522774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522774
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522774#FFFFFF#000000##FFFFFF
##5227741.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#173C72
Tritanopia (blue-blind)
#4C3749
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522774;
/* rgb */ color: rgb(82, 39, 116);
/* oklch */ color: oklch(37.1% 0.129 306.9);
Tailwind
colors: {
  custom: {
    50: '#86649c',
    500: '#522774',
    950: '#000000',
  },
}
SCSS
$custom: #522774;
$custom-light: #86649c;
$custom-dark: #000000;
JSON
{
  "hex": "#522774",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 273.506,
    "s": 49.677,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37108,
    "c": 0.12913,
    "h": 306.9
  },
  "luminance": 0.04506
}

Semantic roles & 50–950 ramp

primary
#522774
secondary
#76A650
accent
#D94F8C
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #522774

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

Preview Lab → · Contrast checker → · Palette generator →

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