#521F97#521F97

#521F97 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.179 H 296.2°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#521F97
RGBrgb(82, 31, 151)
HSLhsl(266, 66%, 36%)
HSVhsv(266, 79%, 59%)
CMYKcmyk(45.7%, 79.5%, 0%, 40.8%)
CIE-LABlab(26.76, 48.18, -56.04)
CIE-LCHlch(26.76, 73.90, 310.69°)
OKLaboklab(39.05% 0.079 -0.1606)
OKLCHoklch(39.05% 0.179 296.2)
XYZxyz(9.5541, 5.0080, 29.7354)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521F97 #64971F
analogous
#1F2897 #521F97 #8E1F97
triadic
#521F97 #97521F #1F9752
tetradic
#521F97 #971F28 #64971F #1F978E
square
#521F97 #971F28 #64971F #1F978E
split-complementary
#521F97 #978E1F #28971F
monochromatic
#1B0A31 #361564 #521F97 #6E29CA #8E54DC

Accessibility & contrast

On white

10.49
#521F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#521F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521F97
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521F97#FFFFFF#000000##FFFFFF
##521F971.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#3F405B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #521f97;
/* rgb */ color: rgb(82, 31, 151);
/* oklch */ color: oklch(39.1% 0.179 296.2);
Tailwind
colors: {
  custom: {
    50: '#8a61b7',
    500: '#521f97',
    950: '#000000',
  },
}
SCSS
$custom: #521f97;
$custom-light: #8a61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#521f97",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 265.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39054,
    "c": 0.17897,
    "h": 296.2
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#521F97
secondary
#91BF52
accent
#E93FA1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #521F97

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

Preview Lab → · Contrast checker → · Palette generator →

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