#521F8A#521F8A

#521F8A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.165 H 300.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#521F8A
RGBrgb(82, 31, 138)
HSLhsl(269, 63%, 33%)
HSVhsv(269, 78%, 54%)
CMYKcmyk(40.6%, 77.5%, 0%, 45.9%)
CIE-LABlab(25.59, 44.82, -49.90)
CIE-LCHlch(25.59, 67.08, 311.93°)
OKLaboklab(37.88% 0.0827 -0.1426)
OKLCHoklch(37.88% 0.165 300.1)
XYZxyz(8.5560, 4.6087, 24.4786)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521F8A #578A1F
analogous
#1F218A #521F8A #871F8A
triadic
#521F8A #8A521F #1F8A52
tetradic
#521F8A #8A1F21 #578A1F #1F8A87
square
#521F8A #8A1F21 #578A1F #1F8A87
split-complementary
#521F8A #8A871F #218A1F
monochromatic
#170926 #341458 #521F8A #702ABC #8E4CD7

Accessibility & contrast

On white

10.93
#521F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#521F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521F8A
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521F8A#FFFFFF#000000##FFFFFF
##521F8A1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#453B53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #521f8a;
/* rgb */ color: rgb(82, 31, 138);
/* oklch */ color: oklch(37.9% 0.165 300.1);
Tailwind
colors: {
  custom: {
    50: '#8860ad',
    500: '#521f8a',
    950: '#000000',
  },
}
SCSS
$custom: #521f8a;
$custom-light: #8860ad;
$custom-dark: #000000;
JSON
{
  "hex": "#521f8a",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 268.598,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.16482,
    "h": 300.1
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#521F8A
secondary
#85BA4B
accent
#E64198
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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