#521578#521578

#521578 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.157 H 308.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#521578
RGBrgb(82, 21, 120)
HSLhsl(277, 70%, 28%)
HSVhsv(277, 83%, 47%)
CMYKcmyk(31.7%, 82.5%, 0%, 52.9%)
CIE-LABlab(22.61, 44.54, -43.41)
CIE-LCHlch(22.61, 62.19, 315.74°)
OKLaboklab(35.31% 0.0963 -0.1234)
OKLCHoklch(35.31% 0.157 308)
XYZxyz(7.1373, 3.6863, 18.1012)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521578 #3B7815
analogous
#211578 #521578 #78156C
triadic
#521578 #785215 #157852
tetradic
#521578 #782115 #3B7815 #156C78
square
#521578 #782115 #3B7815 #156C78
split-complementary
#521578 #6C7815 #157821
monochromatic
#12051A #2E0C44 #521578 #761EAC #982DDA

Accessibility & contrast

On white

12.09
#521578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#521578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521578
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521578#FFFFFF#000000##FFFFFF
##5215781.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#4C2F47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521578;
/* rgb */ color: rgb(82, 21, 120);
/* oklch */ color: oklch(35.3% 0.157 308.0);
Tailwind
colors: {
  custom: {
    50: '#875ba0',
    500: '#521578',
    950: '#000000',
  },
}
SCSS
$custom: #521578;
$custom-light: #875ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#521578",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 276.97,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35305,
    "c": 0.15656,
    "h": 308
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#521578
secondary
#67AE3B
accent
#ED3B7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #521578

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

Preview Lab → · Contrast checker → · Palette generator →

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