#522776#522776

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

Color values

HEX#522776
RGBrgb(82, 39, 118)
HSLhsl(273, 50%, 31%)
HSVhsv(273, 67%, 46%)
CMYKcmyk(30.5%, 66.9%, 0%, 53.7%)
CIE-LABlab(25.42, 35.68, -37.57)
CIE-LCHlch(25.42, 51.81, 313.52°)
OKLaboklab(37.26% 0.0773 -0.1064)
OKLCHoklch(37.26% 0.132 306)
XYZxyz(7.4745, 4.5529, 17.6211)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522776 #4B7627
analogous
#2A2776 #522776 #762772
triadic
#522776 #765227 #277652
tetradic
#522776 #762A27 #4B7627 #277276
square
#522776 #762A27 #4B7627 #277276
split-complementary
#522776 #727627 #27762A
monochromatic
#12091A #321848 #522776 #7236A4 #9152C6

Accessibility & contrast

On white

10.99
#522776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522776
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522776#FFFFFF#000000##FFFFFF
##5227761.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#143C74
Tritanopia (blue-blind)
#4C384B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522776;
/* rgb */ color: rgb(82, 39, 118);
/* oklch */ color: oklch(37.3% 0.132 306.0);
Tailwind
colors: {
  custom: {
    50: '#86649e',
    500: '#522776',
    950: '#000000',
  },
}
SCSS
$custom: #522776;
$custom-light: #86649e;
$custom-dark: #000000;
JSON
{
  "hex": "#522776",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 118
  },
  "hsl": {
    "h": 272.658,
    "s": 50.318,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37257,
    "c": 0.13152,
    "h": 306
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#522776
secondary
#79A851
accent
#DA4E8E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #522776

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

Preview Lab → · Contrast checker → · Palette generator →

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