#521679#521679

#521679 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.157 H 307.5°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#521679
RGBrgb(82, 22, 121)
HSLhsl(276, 69%, 28%)
HSVhsv(276, 82%, 47%)
CMYKcmyk(32.2%, 81.8%, 0%, 52.5%)
CIE-LABlab(22.82, 44.40, -43.70)
CIE-LCHlch(22.82, 62.29, 315.45°)
OKLaboklab(35.48% 0.0952 -0.1243)
OKLCHoklch(35.48% 0.157 307.5)
XYZxyz(7.2170, 3.7482, 18.4287)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521679 #3D7916
analogous
#211679 #521679 #79166E
triadic
#521679 #795216 #167952
tetradic
#521679 #792116 #3D7916 #166E79
square
#521679 #792116 #3D7916 #166E79
split-complementary
#521679 #6E7916 #167921
monochromatic
#12051A #2F0D45 #521679 #751FAD #9730D9

Accessibility & contrast

On white

12.00
#521679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#521679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521679
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521679#FFFFFF#000000##FFFFFF
##5216791.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521679;
/* rgb */ color: rgb(82, 22, 121);
/* oklch */ color: oklch(35.5% 0.157 307.5);
Tailwind
colors: {
  custom: {
    50: '#875ba0',
    500: '#521679',
    950: '#000000',
  },
}
SCSS
$custom: #521679;
$custom-light: #875ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#521679",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 276.364,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35482,
    "c": 0.15655,
    "h": 307.5
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#521679
secondary
#69AE3D
accent
#EC3C81
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521679

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

Preview Lab → · Contrast checker → · Palette generator →

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