#521079#521079

#521079 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.162 H 308.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#521079
RGBrgb(82, 16, 121)
HSLhsl(278, 77%, 27%)
HSVhsv(278, 87%, 47%)
CMYKcmyk(32.2%, 86.8%, 0%, 52.5%)
CIE-LABlab(22.11, 46.48, -44.86)
CIE-LCHlch(22.11, 64.60, 316.01°)
OKLaboklab(34.98% 0.0999 -0.1277)
OKLCHoklch(34.98% 0.162 308.1)
XYZxyz(7.1154, 3.5450, 18.3949)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521079 #377910
analogous
#1D1079 #521079 #79106C
triadic
#521079 #795210 #107952
tetradic
#521079 #791D10 #377910 #106C79
square
#521079 #791D10 #377910 #106C79
split-complementary
#521079 #6C7910 #10791D
monochromatic
#12041B #2D0943 #521079 #7717AF #9A22E2

Accessibility & contrast

On white

12.29
#521079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#521079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521079
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521079#FFFFFF#000000##FFFFFF
##5210791.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#4C2D46
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521079;
/* rgb */ color: rgb(82, 16, 121);
/* oklch */ color: oklch(35.0% 0.162 308.1);
Tailwind
colors: {
  custom: {
    50: '#8759a1',
    500: '#521079',
    950: '#000000',
  },
}
SCSS
$custom: #521079;
$custom-light: #8759a1;
$custom-dark: #000000;
JSON
{
  "hex": "#521079",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 121
  },
  "hsl": {
    "h": 277.714,
    "s": 76.642,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34984,
    "c": 0.16211,
    "h": 308.1
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#521079
secondary
#63B035
accent
#F3357B
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521079

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

Preview Lab → · Contrast checker → · Palette generator →

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