#521576#521576

#521576 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.155 H 308.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#521576
RGBrgb(82, 21, 118)
HSLhsl(278, 70%, 27%)
HSVhsv(278, 82%, 46%)
CMYKcmyk(30.5%, 82.2%, 0%, 53.7%)
CIE-LABlab(22.44, 44.08, -42.40)
CIE-LCHlch(22.44, 61.16, 316.11°)
OKLaboklab(35.14% 0.0969 -0.1205)
OKLCHoklch(35.14% 0.155 308.8)
XYZxyz(7.0172, 3.6383, 17.4686)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521576 #397615
analogous
#221576 #521576 #76156A
triadic
#521576 #765215 #157652
tetradic
#521576 #762215 #397615 #156A76
square
#521576 #762215 #397615 #156A76
split-complementary
#521576 #6A7615 #157622
monochromatic
#12051A #2E0C42 #521576 #761EAA #992CD9

Accessibility & contrast

On white

12.16
#521576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521576
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521576#FFFFFF#000000##FFFFFF
##5215761.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#4C2E46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521576;
/* rgb */ color: rgb(82, 21, 118);
/* oklch */ color: oklch(35.1% 0.155 308.8);
Tailwind
colors: {
  custom: {
    50: '#875b9e',
    500: '#521576',
    950: '#000000',
  },
}
SCSS
$custom: #521576;
$custom-light: #875b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#521576",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 277.732,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35135,
    "c": 0.15457,
    "h": 308.8
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#521576
secondary
#65AC3B
accent
#ED3B7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521576

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

Preview Lab → · Contrast checker → · Palette generator →

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