#521F95#521F95

#521F95 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.177 H 296.8°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#521F95
RGBrgb(82, 31, 149)
HSLhsl(266, 66%, 35%)
HSVhsv(266, 79%, 58%)
CMYKcmyk(45%, 79.2%, 0%, 41.6%)
CIE-LABlab(26.57, 47.66, -55.11)
CIE-LCHlch(26.57, 72.86, 310.85°)
OKLaboklab(38.87% 0.0796 -0.1579)
OKLCHoklch(38.87% 0.177 296.8)
XYZxyz(9.3930, 4.9435, 28.8872)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521F95 #62951F
analogous
#1F2795 #521F95 #8D1F95
triadic
#521F95 #95521F #1F9552
tetradic
#521F95 #951F27 #62951F #1F958D
square
#521F95 #951F27 #62951F #1F958D
split-complementary
#521F95 #958D1F #27951F
monochromatic
#1A0A30 #361462 #521F95 #6E2AC8 #8E53DB

Accessibility & contrast

On white

10.56
#521F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#521F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521F95
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521F95#FFFFFF#000000##FFFFFF
##521F951.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003D93
Tritanopia (blue-blind)
#40405A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #521f95;
/* rgb */ color: rgb(82, 31, 149);
/* oklch */ color: oklch(38.9% 0.177 296.8);
Tailwind
colors: {
  custom: {
    50: '#8a61b5',
    500: '#521f95',
    950: '#000000',
  },
}
SCSS
$custom: #521f95;
$custom-light: #8a61b5;
$custom-dark: #000000;
JSON
{
  "hex": "#521f95",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 265.932,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38869,
    "c": 0.1768,
    "h": 296.8
  },
  "luminance": 0.04944
}

Semantic roles & 50–950 ramp

primary
#521F95
secondary
#8FBF51
accent
#E93F9F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #521F95

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

Preview Lab → · Contrast checker → · Palette generator →

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