#521081#521081

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

Color values

HEX#521081
RGBrgb(82, 16, 129)
HSLhsl(275, 78%, 28%)
HSVhsv(275, 88%, 51%)
CMYKcmyk(36.4%, 87.6%, 0%, 49.4%)
CIE-LABlab(22.82, 48.31, -48.77)
CIE-LCHlch(22.82, 68.65, 314.73°)
OKLaboklab(35.7% 0.0973 -0.1391)
OKLCHoklch(35.7% 0.17 305)
XYZxyz(7.6265, 3.7494, 21.0866)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521081 #3F8110
analogous
#191081 #521081 #811077
triadic
#521081 #815210 #108152
tetradic
#521081 #811910 #3F8110 #107781
square
#521081 #811910 #3F8110 #107781
split-complementary
#521081 #778110 #108119
monochromatic
#11031B #2F094B #521081 #7517B7 #9627E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##521081#FFFFFF#000000##FFFFFF
##5210811.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)
#003584
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#49314B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521081;
/* rgb */ color: rgb(82, 16, 129);
/* oklch */ color: oklch(35.7% 0.170 305.0);
Tailwind
colors: {
  custom: {
    50: '#885aa6',
    500: '#521081',
    950: '#000000',
  },
}
SCSS
$custom: #521081;
$custom-light: #885aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#521081",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 275.044,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35703,
    "c": 0.16977,
    "h": 305
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#521081
secondary
#6CB736
accent
#F43384
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521081

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

Preview Lab → · Contrast checker → · Palette generator →

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