#521FA9#521FA9

#521FA9 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.8% C 0.198 H 291.6°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#521FA9
RGBrgb(82, 31, 169)
HSLhsl(262, 69%, 39%)
HSVhsv(262, 82%, 66%)
CMYKcmyk(51.5%, 81.7%, 0%, 33.7%)
CIE-LABlab(28.48, 52.89, -64.16)
CIE-LCHlch(28.48, 83.15, 309.50°)
OKLaboklab(40.77% 0.0732 -0.1844)
OKLCHoklch(40.77% 0.198 291.6)
XYZxyz(11.1291, 5.6379, 38.0303)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521FA9 #76A91F
analogous
#1F31A9 #521FA9 #971FA9
triadic
#521FA9 #A9521F #1FA952
tetradic
#521FA9 #A91F31 #76A91F #1FA997
square
#521FA9 #A91F31 #76A91F #1FA997
split-complementary
#521FA9 #A9971F #31A91F
monochromatic
#200C42 #391675 #521FA9 #6C2DD8 #9060E2

Accessibility & contrast

On white

9.87
#521FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#521FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521FA9
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521FA9#FFFFFF#000000##FFFFFF
##521FA91.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#344865
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #521fa9;
/* rgb */ color: rgb(82, 31, 169);
/* oklch */ color: oklch(40.8% 0.198 291.6);
Tailwind
colors: {
  custom: {
    50: '#8c62c4',
    500: '#521fa9',
    950: '#000000',
  },
}
SCSS
$custom: #521fa9;
$custom-light: #8c62c4;
$custom-dark: #000000;
JSON
{
  "hex": "#521fa9",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 262.174,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40772,
    "c": 0.19836,
    "h": 291.6
  },
  "luminance": 0.05638
}

Semantic roles & 50–950 ramp

primary
#521FA9
secondary
#A0C75D
accent
#EC3CAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #521FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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