#522279#522279

#522279 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.142 H 305.7°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#522279
RGBrgb(82, 34, 121)
HSLhsl(273, 56%, 30%)
HSVhsv(273, 72%, 47%)
CMYKcmyk(32.2%, 71.9%, 0%, 52.5%)
CIE-LABlab(24.70, 39.06, -40.65)
CIE-LCHlch(24.70, 56.38, 313.86°)
OKLaboklab(36.81% 0.0831 -0.1154)
OKLCHoklch(36.81% 0.142 305.7)
XYZxyz(7.5021, 4.3184, 18.5238)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522279 #497922
analogous
#262279 #522279 #792275
triadic
#522279 #795222 #227952
tetradic
#522279 #792622 #497922 #227579
square
#522279 #792622 #497922 #227579
split-complementary
#522279 #757922 #227926
monochromatic
#110719 #321549 #522279 #722FA9 #9149CC

Accessibility & contrast

On white

11.27
#522279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#522279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522279
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522279#FFFFFF#000000##FFFFFF
##5222791.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#043B77
Tritanopia (blue-blind)
#4B364B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #522279;
/* rgb */ color: rgb(82, 34, 121);
/* oklch */ color: oklch(36.8% 0.142 305.7);
Tailwind
colors: {
  custom: {
    50: '#8661a0',
    500: '#522279',
    950: '#000000',
  },
}
SCSS
$custom: #522279;
$custom-light: #8661a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522279",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 273.103,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36808,
    "c": 0.14218,
    "h": 305.7
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#522279
secondary
#76AC4B
accent
#DF488C
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #522279

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

Preview Lab → · Contrast checker → · Palette generator →

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