#521577#521577

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

Color values

HEX#521577
RGBrgb(82, 21, 119)
HSLhsl(277, 70%, 27%)
HSVhsv(277, 82%, 47%)
CMYKcmyk(31.1%, 82.4%, 0%, 53.3%)
CIE-LABlab(22.52, 44.31, -42.91)
CIE-LCHlch(22.52, 61.68, 315.92°)
OKLaboklab(35.22% 0.0966 -0.1219)
OKLCHoklch(35.22% 0.156 308.4)
XYZxyz(7.0769, 3.6622, 17.7832)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521577 #3A7715
analogous
#211577 #521577 #77156B
triadic
#521577 #775215 #157752
tetradic
#521577 #772115 #3A7715 #156B77
square
#521577 #772115 #3A7715 #156B77
split-complementary
#521577 #6B7715 #157721
monochromatic
#12051A #2E0C43 #521577 #761EAB #982DDA

Accessibility & contrast

On white

12.12
#521577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#521577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521577
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521577#FFFFFF#000000##FFFFFF
##5215771.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#4C2E46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521577;
/* rgb */ color: rgb(82, 21, 119);
/* oklch */ color: oklch(35.2% 0.156 308.4);
Tailwind
colors: {
  custom: {
    50: '#875b9f',
    500: '#521577',
    950: '#000000',
  },
}
SCSS
$custom: #521577;
$custom-light: #875b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#521577",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 277.347,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3522,
    "c": 0.15556,
    "h": 308.4
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#521577
secondary
#66AD3B
accent
#ED3B7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521577

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

Preview Lab → · Contrast checker → · Palette generator →

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