#521F9F#521F9F

#521F9F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.188 H 294.1°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#521F9F
RGBrgb(82, 31, 159)
HSLhsl(264, 67%, 37%)
HSVhsv(264, 81%, 62%)
CMYKcmyk(48.4%, 80.5%, 0%, 37.6%)
CIE-LABlab(27.51, 50.27, -59.70)
CIE-LCHlch(27.51, 78.04, 310.10°)
OKLaboklab(39.81% 0.0765 -0.1713)
OKLCHoklch(39.81% 0.188 294.1)
XYZxyz(10.2259, 5.2767, 33.2739)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521F9F #6C9F1F
analogous
#1F2C9F #521F9F #921F9F
triadic
#521F9F #9F521F #1F9F52
tetradic
#521F9F #9F1F2C #6C9F1F #1F9F92
square
#521F9F #9F1F2C #6C9F1F #1F9F92
split-complementary
#521F9F #9F921F #2C9F1F
monochromatic
#1D0B39 #38156C #521F9F #6C29D2 #8F5ADF

Accessibility & contrast

On white

10.22
#521F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#521F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521F9F
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521F9F#FFFFFF#000000##FFFFFF
##521F9F1.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#3A445F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #521f9f;
/* rgb */ color: rgb(82, 31, 159);
/* oklch */ color: oklch(39.8% 0.188 294.1);
Tailwind
colors: {
  custom: {
    50: '#8b62bc',
    500: '#521f9f',
    950: '#000000',
  },
}
SCSS
$custom: #521f9f;
$custom-light: #8b62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#521f9f",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 263.906,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39806,
    "c": 0.18762,
    "h": 294.1
  },
  "luminance": 0.05277
}

Semantic roles & 50–950 ramp

primary
#521F9F
secondary
#98C357
accent
#EA3EA5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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