#521978#521978

#521978 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.152 H 307.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#521978
RGBrgb(82, 25, 120)
HSLhsl(276, 66%, 28%)
HSVhsv(276, 79%, 47%)
CMYKcmyk(31.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(23.15, 42.96, -42.52)
CIE-LCHlch(23.15, 60.44, 315.30°)
OKLaboklab(35.69% 0.0927 -0.1208)
OKLCHoklch(35.69% 0.152 307.5)
XYZxyz(7.2167, 3.8453, 18.1277)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521978 #3F7819
analogous
#221978 #521978 #78196E
triadic
#521978 #785219 #197852
tetradic
#521978 #782219 #3F7819 #196E78
square
#521978 #782219 #3F7819 #196E78
split-complementary
#521978 #6E7819 #197822
monochromatic
#110519 #2F0E45 #521978 #7524AB #9636D5

Accessibility & contrast

On white

11.87
#521978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#521978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521978
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521978#FFFFFF#000000##FFFFFF
##5219781.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#4C3148
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521978;
/* rgb */ color: rgb(82, 25, 120);
/* oklch */ color: oklch(35.7% 0.152 307.5);
Tailwind
colors: {
  custom: {
    50: '#875da0',
    500: '#521978',
    950: '#000000',
  },
}
SCSS
$custom: #521978;
$custom-light: #875da0;
$custom-dark: #000000;
JSON
{
  "hex": "#521978",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 276,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35689,
    "c": 0.15231,
    "h": 307.5
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#521978
secondary
#6CAD40
accent
#E83F83
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #521978

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

Preview Lab → · Contrast checker → · Palette generator →

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