#521878#521878

#521878 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.153 H 307.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#521878
RGBrgb(82, 24, 120)
HSLhsl(276, 67%, 28%)
HSVhsv(276, 80%, 47%)
CMYKcmyk(31.7%, 80%, 0%, 52.9%)
CIE-LABlab(23.01, 43.37, -42.75)
CIE-LCHlch(23.01, 60.90, 315.41°)
OKLaboklab(35.59% 0.0937 -0.1215)
OKLCHoklch(35.59% 0.153 307.6)
XYZxyz(7.1958, 3.8033, 18.1207)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521878 #3E7818
analogous
#221878 #521878 #78186E
triadic
#521878 #785218 #187852
tetradic
#521878 #782218 #3E7818 #186E78
square
#521878 #782218 #3E7818 #186E78
split-complementary
#521878 #6E7818 #187822
monochromatic
#11051A #2F0E45 #521878 #7522AB #9634D6

Accessibility & contrast

On white

11.93
#521878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#521878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521878
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521878#FFFFFF#000000##FFFFFF
##5218781.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521878;
/* rgb */ color: rgb(82, 24, 120);
/* oklch */ color: oklch(35.6% 0.153 307.6);
Tailwind
colors: {
  custom: {
    50: '#875ca0',
    500: '#521878',
    950: '#000000',
  },
}
SCSS
$custom: #521878;
$custom-light: #875ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#521878",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 276.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35588,
    "c": 0.15342,
    "h": 307.6
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#521878
secondary
#6AAD3F
accent
#EA3E82
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #521878

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

Preview Lab → · Contrast checker → · Palette generator →

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