#522979#522979

#522979 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.132 H 304.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#522979
RGBrgb(82, 41, 121)
HSLhsl(271, 49%, 32%)
HSVhsv(271, 66%, 47%)
CMYKcmyk(32.2%, 66.1%, 0%, 52.5%)
CIE-LABlab(26.04, 35.36, -38.48)
CIE-LCHlch(26.04, 52.26, 312.57°)
OKLaboklab(37.77% 0.0746 -0.1091)
OKLCHoklch(37.77% 0.132 304.4)
XYZxyz(7.7230, 4.7602, 18.5974)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522979 #507929
analogous
#2A2979 #522979 #792978
triadic
#522979 #795229 #297952
tetradic
#522979 #792A29 #507929 #297879
square
#522979 #792A29 #507929 #297879
split-complementary
#522979 #787929 #29792A
monochromatic
#140A1E #331A4B #522979 #7138A7 #9056C6

Accessibility & contrast

On white

10.76
#522979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#522979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522979
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522979#FFFFFF#000000##FFFFFF
##5229791.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#133E77
Tritanopia (blue-blind)
#4B3A4D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522979;
/* rgb */ color: rgb(82, 41, 121);
/* oklch */ color: oklch(37.8% 0.132 304.4);
Tailwind
colors: {
  custom: {
    50: '#8665a0',
    500: '#522979',
    950: '#000000',
  },
}
SCSS
$custom: #522979;
$custom-light: #8665a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522979",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 270.75,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37773,
    "c": 0.13211,
    "h": 304.4
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#522979
secondary
#7EAB53
accent
#D94F92
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522979

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

Preview Lab → · Contrast checker → · Palette generator →

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