#521176#521176

#521176 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.158 H 309.2°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#521176
RGBrgb(82, 17, 118)
HSLhsl(279, 75%, 26%)
HSVhsv(279, 86%, 46%)
CMYKcmyk(30.5%, 85.6%, 0%, 53.7%)
CIE-LABlab(21.95, 45.48, -43.19)
CIE-LCHlch(21.95, 62.72, 316.48°)
OKLaboklab(34.8% 0.1001 -0.1227)
OKLCHoklch(34.8% 0.158 309.2)
XYZxyz(6.9495, 3.5029, 17.4461)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521176 #357611
analogous
#201176 #521176 #761168
triadic
#521176 #765211 #117652
tetradic
#521176 #762011 #357611 #116876
square
#521176 #762011 #357611 #116876
split-complementary
#521176 #687611 #117620
monochromatic
#13041B #2D0941 #521176 #7719AB #9C22DF

Accessibility & contrast

On white

12.35
#521176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#521176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521176
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521176#FFFFFF#000000##FFFFFF
##5211761.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#4C2C45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521176;
/* rgb */ color: rgb(82, 17, 118);
/* oklch */ color: oklch(34.8% 0.158 309.2);
Tailwind
colors: {
  custom: {
    50: '#87599e',
    500: '#521176',
    950: '#000000',
  },
}
SCSS
$custom: #521176;
$custom-light: #87599e;
$custom-dark: #000000;
JSON
{
  "hex": "#521176",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 278.614,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34798,
    "c": 0.15838,
    "h": 309.2
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#521176
secondary
#60AD36
accent
#F13679
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521176

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

Preview Lab → · Contrast checker → · Palette generator →

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