#521E9B#521E9B

#521E9B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.184 H 295.2°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#521E9B
RGBrgb(82, 30, 155)
HSLhsl(265, 68%, 36%)
HSVhsv(265, 81%, 61%)
CMYKcmyk(47.1%, 80.6%, 0%, 39.2%)
CIE-LABlab(26.99, 49.64, -58.12)
CIE-LCHlch(26.99, 76.43, 310.50°)
OKLaboklab(39.33% 0.0786 -0.1667)
OKLCHoklch(39.33% 0.184 295.2)
XYZxyz(9.8587, 5.0887, 31.4668)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E9B #679B1E
analogous
#1E299B #521E9B #911E9B
triadic
#521E9B #9B521E #1E9B52
tetradic
#521E9B #9B1E29 #679B1E #1E9B91
square
#521E9B #9B1E29 #679B1E #1E9B91
split-complementary
#521E9B #9B911E #299B1E
monochromatic
#1C0A34 #371468 #521E9B #6D28CE #8E55DE

Accessibility & contrast

On white

10.41
#521E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#521E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E9B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E9B#FFFFFF#000000##FFFFFF
##521E9B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#3D425D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #521e9b;
/* rgb */ color: rgb(82, 30, 155);
/* oklch */ color: oklch(39.3% 0.184 295.2);
Tailwind
colors: {
  custom: {
    50: '#8a61ba',
    500: '#521e9b',
    950: '#000000',
  },
}
SCSS
$custom: #521e9b;
$custom-light: #8a61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#521e9b",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 264.96,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39327,
    "c": 0.18424,
    "h": 295.2
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#521E9B
secondary
#94C253
accent
#EA3DA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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