#522679#522679

#522679 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.137 H 305.0°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#522679
RGBrgb(82, 38, 121)
HSLhsl(272, 52%, 31%)
HSVhsv(272, 69%, 47%)
CMYKcmyk(32.2%, 68.6%, 0%, 52.5%)
CIE-LABlab(25.44, 36.99, -39.45)
CIE-LCHlch(25.44, 54.07, 313.16°)
OKLaboklab(37.34% 0.0783 -0.1119)
OKLCHoklch(37.34% 0.137 305)
XYZxyz(7.6232, 4.5606, 18.5641)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522679 #4D7926
analogous
#282679 #522679 #792676
triadic
#522679 #795226 #267952
tetradic
#522679 #792826 #4D7926 #267679
square
#522679 #792826 #4D7926 #267679
split-complementary
#522679 #767926 #267928
monochromatic
#13091C #32174A #522679 #7235A8 #9051C8

Accessibility & contrast

On white

10.98
#522679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#522679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522679
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522679#FFFFFF#000000##FFFFFF
##5226791.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#0D3C77
Tritanopia (blue-blind)
#4B384C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522679;
/* rgb */ color: rgb(82, 38, 121);
/* oklch */ color: oklch(37.3% 0.137 305.0);
Tailwind
colors: {
  custom: {
    50: '#8664a0',
    500: '#522679',
    950: '#000000',
  },
}
SCSS
$custom: #522679;
$custom-light: #8664a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522679",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 121
  },
  "hsl": {
    "h": 271.807,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37343,
    "c": 0.13656,
    "h": 305
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#522679
secondary
#7BAB50
accent
#DC4C90
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #522679

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

Preview Lab → · Contrast checker → · Palette generator →

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