#522079#522079

#522079 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.145 H 306.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#522079
RGBrgb(82, 32, 121)
HSLhsl(274, 58%, 30%)
HSVhsv(274, 74%, 47%)
CMYKcmyk(32.2%, 73.6%, 0%, 52.5%)
CIE-LABlab(24.35, 40.05, -41.22)
CIE-LCHlch(24.35, 57.47, 314.17°)
OKLaboklab(36.56% 0.0853 -0.1171)
OKLCHoklch(36.56% 0.145 306.1)
XYZxyz(7.4466, 4.2074, 18.5053)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522079 #477920
analogous
#262079 #522079 #792073
triadic
#522079 #795220 #207952
tetradic
#522079 #792620 #477920 #207379
square
#522079 #792620 #477920 #207379
split-complementary
#522079 #737920 #207926
monochromatic
#100618 #311349 #522079 #732DA9 #9245CE

Accessibility & contrast

On white

11.40
#522079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#522079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522079
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522079#FFFFFF#000000##FFFFFF
##5220791.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003A77
Tritanopia (blue-blind)
#4B354A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522079;
/* rgb */ color: rgb(82, 32, 121);
/* oklch */ color: oklch(36.6% 0.145 306.1);
Tailwind
colors: {
  custom: {
    50: '#8760a0',
    500: '#522079',
    950: '#000000',
  },
}
SCSS
$custom: #522079;
$custom-light: #8760a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522079",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 273.708,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.36557,
    "c": 0.14486,
    "h": 306.1
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#522079
secondary
#74AC49
accent
#E1468A
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #522079

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

Preview Lab → · Contrast checker → · Palette generator →

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