#522779#522779

#522779 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.135 H 304.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#522779
RGBrgb(82, 39, 121)
HSLhsl(271, 51%, 31%)
HSVhsv(271, 68%, 47%)
CMYKcmyk(32.2%, 67.8%, 0%, 52.5%)
CIE-LABlab(25.64, 36.45, -39.13)
CIE-LCHlch(25.64, 53.48, 312.97°)
OKLaboklab(37.48% 0.0771 -0.1109)
OKLCHoklch(37.48% 0.135 304.8)
XYZxyz(7.6556, 4.6254, 18.5749)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522779 #4E7927
analogous
#292779 #522779 #792777
triadic
#522779 #795227 #277952
tetradic
#522779 #792927 #4E7927 #277779
square
#522779 #792927 #4E7927 #277779
split-complementary
#522779 #777927 #277929
monochromatic
#13091C #33184B #522779 #7136A7 #9053C8

Accessibility & contrast

On white

10.91
#522779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#522779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522779
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522779#FFFFFF#000000##FFFFFF
##5227791.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#0F3D77
Tritanopia (blue-blind)
#4B394C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522779;
/* rgb */ color: rgb(82, 39, 121);
/* oklch */ color: oklch(37.5% 0.135 304.8);
Tailwind
colors: {
  custom: {
    50: '#8664a0',
    500: '#522779',
    950: '#000000',
  },
}
SCSS
$custom: #522779;
$custom-light: #8664a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522779",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 271.463,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37484,
    "c": 0.1351,
    "h": 304.8
  },
  "luminance": 0.04625
}

Semantic roles & 50–950 ramp

primary
#522779
secondary
#7CAB51
accent
#DB4D90
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522779

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

Preview Lab → · Contrast checker → · Palette generator →

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