#521B83#521B83

#521B83 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.162 H 303.0°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#521B83
RGBrgb(82, 27, 131)
HSLhsl(272, 66%, 31%)
HSVhsv(272, 79%, 51%)
CMYKcmyk(37.4%, 79.4%, 0%, 48.6%)
CIE-LABlab(24.37, 44.80, -47.50)
CIE-LCHlch(24.37, 65.29, 313.32°)
OKLaboklab(36.84% 0.0882 -0.1355)
OKLCHoklch(36.84% 0.162 303)
XYZxyz(7.9674, 4.2164, 21.8624)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B83 #4C831B
analogous
#1E1B83 #521B83 #831B80
triadic
#521B83 #83521B #1B8352
tetradic
#521B83 #831E1B #4C831B #1B8083
square
#521B83 #831E1B #4C831B #1B8083
split-complementary
#521B83 #80831B #1B831E
monochromatic
#12061E #321150 #521B83 #7225B6 #9141D8

Accessibility & contrast

On white

11.39
#521B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#521B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521B83
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B83#FFFFFF#000000##FFFFFF
##521B831.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#48364E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521b83;
/* rgb */ color: rgb(82, 27, 131);
/* oklch */ color: oklch(36.8% 0.162 303.0);
Tailwind
colors: {
  custom: {
    50: '#885ea8',
    500: '#521b83',
    950: '#000000',
  },
}
SCSS
$custom: #521b83;
$custom-light: #885ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#521b83",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 271.731,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36836,
    "c": 0.16164,
    "h": 303
  },
  "luminance": 0.04216
}

Semantic roles & 50–950 ramp

primary
#521B83
secondary
#7AB643
accent
#E93F8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521B83

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

Preview Lab → · Contrast checker → · Palette generator →

#521B83 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva