#521380#521380

#521380 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.166 H 305.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#521380
RGBrgb(82, 19, 128)
HSLhsl(275, 74%, 29%)
HSVhsv(275, 85%, 50%)
CMYKcmyk(35.9%, 85.2%, 0%, 49.8%)
CIE-LABlab(23.06, 47.12, -47.75)
CIE-LCHlch(23.06, 67.09, 314.62°)
OKLaboklab(35.84% 0.0956 -0.1362)
OKLCHoklch(35.84% 0.166 305.1)
XYZxyz(7.6079, 3.8181, 20.7541)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521380 #418013
analogous
#1C1380 #521380 #801378
triadic
#521380 #805213 #138052
tetradic
#521380 #801C13 #418013 #137880
square
#521380 #801C13 #418013 #137880
split-complementary
#521380 #788013 #13801C
monochromatic
#11041B #300B4B #521380 #741BB5 #952DE0

Accessibility & contrast

On white

11.91
#521380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#521380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521380
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521380#FFFFFF#000000##FFFFFF
##5213801.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521380;
/* rgb */ color: rgb(82, 19, 128);
/* oklch */ color: oklch(35.8% 0.166 305.1);
Tailwind
colors: {
  custom: {
    50: '#885ba6',
    500: '#521380',
    950: '#000000',
  },
}
SCSS
$custom: #521380;
$custom-light: #885ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#521380",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 274.679,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35838,
    "c": 0.16635,
    "h": 305.1
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#521380
secondary
#6EB539
accent
#F13785
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521380

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

Preview Lab → · Contrast checker → · Palette generator →

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