#521180#521180

#521180 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.168 H 305.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#521180
RGBrgb(82, 17, 128)
HSLhsl(275, 77%, 28%)
HSVhsv(275, 87%, 50%)
CMYKcmyk(35.9%, 86.7%, 0%, 49.8%)
CIE-LABlab(22.84, 47.77, -48.12)
CIE-LCHlch(22.84, 67.80, 314.79°)
OKLaboklab(35.68% 0.097 -0.1372)
OKLCHoklch(35.68% 0.168 305.2)
XYZxyz(7.5755, 3.7533, 20.7433)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521180 #3F8011
analogous
#1A1180 #521180 #801176
triadic
#521180 #805211 #118052
tetradic
#521180 #801A11 #3F8011 #117680
square
#521180 #801A11 #3F8011 #117680
split-complementary
#521180 #768011 #11801A
monochromatic
#11041B #2F0A4A #521180 #7518B6 #9629E3

Accessibility & contrast

On white

12.00
#521180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#521180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521180
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521180#FFFFFF#000000##FFFFFF
##5211801.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#49314B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521180;
/* rgb */ color: rgb(82, 17, 128);
/* oklch */ color: oklch(35.7% 0.168 305.2);
Tailwind
colors: {
  custom: {
    50: '#885aa6',
    500: '#521180',
    950: '#000000',
  },
}
SCSS
$custom: #521180;
$custom-light: #885aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#521180",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 275.135,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35684,
    "c": 0.16803,
    "h": 305.2
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#521180
secondary
#6CB637
accent
#F33584
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521180

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

Preview Lab → · Contrast checker → · Palette generator →

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