#521879#521879

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

Color values

HEX#521879
RGBrgb(82, 24, 121)
HSLhsl(276, 67%, 28%)
HSVhsv(276, 80%, 47%)
CMYKcmyk(32.2%, 80.2%, 0%, 52.5%)
CIE-LABlab(23.09, 43.61, -43.25)
CIE-LCHlch(23.09, 61.42, 315.23°)
OKLaboklab(35.67% 0.0934 -0.123)
OKLCHoklch(35.67% 0.154 307.2)
XYZxyz(7.2568, 3.8277, 18.4420)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521879 #3F7918
analogous
#211879 #521879 #79186F
triadic
#521879 #795218 #187952
tetradic
#521879 #792118 #3F7918 #186F79
square
#521879 #792118 #3F7918 #186F79
split-complementary
#521879 #6F7918 #187921
monochromatic
#11051A #2F0E46 #521879 #7522AC #9635D7

Accessibility & contrast

On white

11.89
#521879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521879
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521879#FFFFFF#000000##FFFFFF
##5218791.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#4B3048
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521879;
/* rgb */ color: rgb(82, 24, 121);
/* oklch */ color: oklch(35.7% 0.154 307.2);
Tailwind
colors: {
  custom: {
    50: '#875ca0',
    500: '#521879',
    950: '#000000',
  },
}
SCSS
$custom: #521879;
$custom-light: #875ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#521879",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 275.876,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35673,
    "c": 0.15444,
    "h": 307.2
  },
  "luminance": 0.03828
}

Semantic roles & 50–950 ramp

primary
#521879
secondary
#6CAE3F
accent
#EA3E83
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #521879

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

Preview Lab → · Contrast checker → · Palette generator →

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