#521076#521076

#521076 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.159 H 309.3°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#521076
RGBrgb(82, 16, 118)
HSLhsl(279, 76%, 26%)
HSVhsv(279, 86%, 46%)
CMYKcmyk(30.5%, 86.4%, 0%, 53.7%)
CIE-LABlab(21.85, 45.80, -43.37)
CIE-LCHlch(21.85, 63.07, 316.56°)
OKLaboklab(34.72% 0.1008 -0.1233)
OKLCHoklch(34.72% 0.159 309.3)
XYZxyz(6.9343, 3.4726, 17.4410)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521076 #347610
analogous
#1F1076 #521076 #761067
triadic
#521076 #765210 #107652
tetradic
#521076 #761F10 #347610 #106776
square
#521076 #761F10 #347610 #106776
split-complementary
#521076 #677610 #10761F
monochromatic
#13041B #2D0940 #521076 #7717AC #9D20E1

Accessibility & contrast

On white

12.39
#521076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#521076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521076
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521076#FFFFFF#000000##FFFFFF
##5210761.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#4C2C45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521076;
/* rgb */ color: rgb(82, 16, 118);
/* oklch */ color: oklch(34.7% 0.159 309.3);
Tailwind
colors: {
  custom: {
    50: '#87599e',
    500: '#521076',
    950: '#000000',
  },
}
SCSS
$custom: #521076;
$custom-light: #87599e;
$custom-dark: #000000;
JSON
{
  "hex": "#521076",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 278.824,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34721,
    "c": 0.15925,
    "h": 309.3
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#521076
secondary
#5FAD35
accent
#F33578
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521076

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

Preview Lab → · Contrast checker → · Palette generator →

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