#521F83#521F83

#521F83 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.157 H 302.5°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#521F83
RGBrgb(82, 31, 131)
HSLhsl(271, 62%, 32%)
HSVhsv(271, 76%, 51%)
CMYKcmyk(37.4%, 76.3%, 0%, 48.6%)
CIE-LABlab(24.99, 43.03, -46.50)
CIE-LCHlch(24.99, 63.36, 312.78°)
OKLaboklab(37.27% 0.0844 -0.1326)
OKLCHoklch(37.27% 0.157 302.5)
XYZxyz(8.0654, 4.4125, 21.8951)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521F83 #50831F
analogous
#201F83 #521F83 #831F82
triadic
#521F83 #83521F #1F8352
tetradic
#521F83 #83201F #50831F #1F8283
square
#521F83 #83201F #50831F #1F8283
split-complementary
#521F83 #82831F #1F8320
monochromatic
#140820 #331352 #521F83 #712BB4 #9049D4

Accessibility & contrast

On white

11.15
#521F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#521F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521F83
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521F83#FFFFFF#000000##FFFFFF
##521F831.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#48384F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #521f83;
/* rgb */ color: rgb(82, 31, 131);
/* oklch */ color: oklch(37.3% 0.157 302.5);
Tailwind
colors: {
  custom: {
    50: '#8860a8',
    500: '#521f83',
    950: '#000000',
  },
}
SCSS
$custom: #521f83;
$custom-light: #8860a8;
$custom-dark: #000000;
JSON
{
  "hex": "#521f83",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 270.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.15715,
    "h": 302.5
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#521F83
secondary
#7EB648
accent
#E54392
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521F83

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

Preview Lab → · Contrast checker → · Palette generator →

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