#522778#522778

#522778 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.134 H 305.2°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#522778
RGBrgb(82, 39, 120)
HSLhsl(272, 51%, 31%)
HSVhsv(272, 68%, 47%)
CMYKcmyk(31.7%, 67.5%, 0%, 52.9%)
CIE-LABlab(25.57, 36.19, -38.61)
CIE-LCHlch(25.57, 52.92, 313.15°)
OKLaboklab(37.41% 0.0772 -0.1094)
OKLCHoklch(37.41% 0.134 305.2)
XYZxyz(7.5946, 4.6010, 18.2536)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522778 #4D7827
analogous
#292778 #522778 #782775
triadic
#522778 #785227 #277852
tetradic
#522778 #782927 #4D7827 #277578
square
#522778 #782927 #4D7827 #277578
split-complementary
#522778 #757827 #277829
monochromatic
#13091C #32184A #522778 #7236A6 #9052C7

Accessibility & contrast

On white

10.94
#522778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#522778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522778
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522778#FFFFFF#000000##FFFFFF
##5227781.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#113D76
Tritanopia (blue-blind)
#4B384C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522778;
/* rgb */ color: rgb(82, 39, 120);
/* oklch */ color: oklch(37.4% 0.134 305.2);
Tailwind
colors: {
  custom: {
    50: '#86649f',
    500: '#522778',
    950: '#000000',
  },
}
SCSS
$custom: #522778;
$custom-light: #86649f;
$custom-dark: #000000;
JSON
{
  "hex": "#522778",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 120
  },
  "hsl": {
    "h": 271.852,
    "s": 50.943,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37408,
    "c": 0.13391,
    "h": 305.2
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#522778
secondary
#7BAA51
accent
#DA4D90
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #522778

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

Preview Lab → · Contrast checker → · Palette generator →

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