#521776#521776

#521776 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.152 H 308.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#521776
RGBrgb(82, 23, 118)
HSLhsl(277, 67%, 28%)
HSVhsv(277, 81%, 46%)
CMYKcmyk(30.5%, 80.5%, 0%, 53.7%)
CIE-LABlab(22.71, 43.30, -41.97)
CIE-LCHlch(22.71, 60.30, 315.90°)
OKLaboklab(35.32% 0.0951 -0.1192)
OKLCHoklch(35.32% 0.152 308.6)
XYZxyz(7.0554, 3.7148, 17.4814)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521776 #3B7617
analogous
#221776 #521776 #76176B
triadic
#521776 #765217 #177652
tetradic
#521776 #762217 #3B7617 #176B76
square
#521776 #762217 #3B7617 #176B76
split-complementary
#521776 #6B7617 #177622
monochromatic
#12051A #2E0D43 #521776 #7621A9 #9831D7

Accessibility & contrast

On white

12.05
#521776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521776
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521776#FFFFFF#000000##FFFFFF
##5217761.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#4C2F46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521776;
/* rgb */ color: rgb(82, 23, 118);
/* oklch */ color: oklch(35.3% 0.152 308.6);
Tailwind
colors: {
  custom: {
    50: '#875c9e',
    500: '#521776',
    950: '#000000',
  },
}
SCSS
$custom: #521776;
$custom-light: #875c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#521776",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 277.263,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35322,
    "c": 0.15247,
    "h": 308.6
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#521776
secondary
#67AB3E
accent
#EA3E7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521776

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

Preview Lab → · Contrast checker → · Palette generator →

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