#521678#521678

#521678 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.156 H 307.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#521678
RGBrgb(82, 22, 120)
HSLhsl(277, 69%, 28%)
HSVhsv(277, 82%, 47%)
CMYKcmyk(31.7%, 81.7%, 0%, 52.9%)
CIE-LABlab(22.74, 44.16, -43.20)
CIE-LCHlch(22.74, 61.78, 315.63°)
OKLaboklab(35.4% 0.0955 -0.1228)
OKLCHoklch(35.4% 0.156 307.9)
XYZxyz(7.1560, 3.7238, 18.1074)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521678 #3C7816
analogous
#211678 #521678 #78166D
triadic
#521678 #785216 #167852
tetradic
#521678 #782116 #3C7816 #166D78
square
#521678 #782116 #3C7816 #166D78
split-complementary
#521678 #6D7816 #167821
monochromatic
#12051A #2F0D44 #521678 #751FAC #972FD9

Accessibility & contrast

On white

12.04
#521678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#521678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521678
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521678#FFFFFF#000000##FFFFFF
##5216781.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#4C2F47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521678;
/* rgb */ color: rgb(82, 22, 120);
/* oklch */ color: oklch(35.4% 0.156 307.9);
Tailwind
colors: {
  custom: {
    50: '#875ba0',
    500: '#521678',
    950: '#000000',
  },
}
SCSS
$custom: #521678;
$custom-light: #875ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#521678",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 276.735,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35396,
    "c": 0.15555,
    "h": 307.9
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#521678
secondary
#68AD3C
accent
#EC3C80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #521678

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

Preview Lab → · Contrast checker → · Palette generator →

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