#522378#522378

#522378 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.140 H 306.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#522378
RGBrgb(82, 35, 120)
HSLhsl(273, 55%, 30%)
HSVhsv(273, 71%, 47%)
CMYKcmyk(31.7%, 70.8%, 0%, 52.9%)
CIE-LABlab(24.80, 38.30, -39.85)
CIE-LCHlch(24.80, 55.27, 313.87°)
OKLaboklab(36.86% 0.082 -0.113)
OKLCHoklch(36.86% 0.14 306)
XYZxyz(7.4701, 4.3520, 18.2121)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522378 #497823
analogous
#272378 #522378 #782374
triadic
#522378 #785223 #237852
tetradic
#522378 #782723 #497823 #237478
square
#522378 #782723 #497823 #237478
split-complementary
#522378 #747823 #237827
monochromatic
#110719 #321549 #522378 #7231A7 #914BCA

Accessibility & contrast

On white

11.23
#522378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#522378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522378
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522378#FFFFFF#000000##FFFFFF
##5223781.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#093B76
Tritanopia (blue-blind)
#4B364A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #522378;
/* rgb */ color: rgb(82, 35, 120);
/* oklch */ color: oklch(36.9% 0.140 306.0);
Tailwind
colors: {
  custom: {
    50: '#8662a0',
    500: '#522378',
    950: '#000000',
  },
}
SCSS
$custom: #522378;
$custom-light: #8662a0;
$custom-dark: #000000;
JSON
{
  "hex": "#522378",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 120
  },
  "hsl": {
    "h": 273.176,
    "s": 54.839,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36859,
    "c": 0.13967,
    "h": 306
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#522378
secondary
#76AB4C
accent
#DE4A8C
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #522378

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

Preview Lab → · Contrast checker → · Palette generator →

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