#521D9F#521D9F

#521D9F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.189 H 294.3°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#521D9F
RGBrgb(82, 29, 159)
HSLhsl(264, 69%, 37%)
HSVhsv(264, 82%, 62%)
CMYKcmyk(48.4%, 81.8%, 0%, 37.6%)
CIE-LABlab(27.23, 51.08, -60.16)
CIE-LCHlch(27.23, 78.92, 310.34°)
OKLaboklab(39.61% 0.078 -0.1726)
OKLCHoklch(39.61% 0.189 294.3)
XYZxyz(10.1753, 5.1755, 33.2570)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D9F #6A9F1D
analogous
#1D299F #521D9F #931D9F
triadic
#521D9F #9F521D #1D9F52
tetradic
#521D9F #9F1D29 #6A9F1D #1D9F93
square
#521D9F #9F1D29 #6A9F1D #1D9F93
split-complementary
#521D9F #9F931D #299F1D
monochromatic
#1D0A37 #37146B #521D9F #6D26D3 #8E56E0

Accessibility & contrast

On white

10.32
#521D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#521D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521D9F
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D9F#FFFFFF#000000##FFFFFF
##521D9F1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#3A435F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #521d9f;
/* rgb */ color: rgb(82, 29, 159);
/* oklch */ color: oklch(39.6% 0.189 294.3);
Tailwind
colors: {
  custom: {
    50: '#8b61bc',
    500: '#521d9f',
    950: '#000000',
  },
}
SCSS
$custom: #521d9f;
$custom-light: #8b61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#521d9f",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 264.462,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39612,
    "c": 0.18943,
    "h": 294.3
  },
  "luminance": 0.05176
}

Semantic roles & 50–950 ramp

primary
#521D9F
secondary
#96C454
accent
#EC3CA4
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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