#521CB4#521CB4

#521CB4 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.6% C 0.212 H 289.5°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#521CB4
RGBrgb(82, 28, 180)
HSLhsl(261, 73%, 41%)
HSVhsv(261, 84%, 71%)
CMYKcmyk(54.4%, 84.4%, 0%, 29.4%)
CIE-LABlab(29.21, 56.88, -69.55)
CIE-LCHlch(29.21, 89.85, 309.28°)
OKLaboklab(41.61% 0.071 -0.2001)
OKLCHoklch(41.61% 0.212 289.5)
XYZxyz(12.1307, 5.9191, 43.6745)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521CB4 #7EB41C
analogous
#1C32B4 #521CB4 #9E1CB4
triadic
#521CB4 #B4521C #1CB452
tetradic
#521CB4 #B41C32 #7EB41C #1CB49E
square
#521CB4 #B41C32 #7EB41C #1CB49E
split-complementary
#521CB4 #B49E1C #32B41C
monochromatic
#220C4A #3A147F #521CB4 #6D2FDF #9264E7

Accessibility & contrast

On white

9.62
#521CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#521CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521CB4
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521CB4#FFFFFF#000000##FFFFFF
##521CB41.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#2A4C6B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #521cb4;
/* rgb */ color: rgb(82, 28, 180);
/* oklch */ color: oklch(41.6% 0.212 289.5);
Tailwind
colors: {
  custom: {
    50: '#8e62cc',
    500: '#521cb4',
    950: '#000000',
  },
}
SCSS
$custom: #521cb4;
$custom-light: #8e62cc;
$custom-dark: #000000;
JSON
{
  "hex": "#521cb4",
  "rgb": {
    "r": 82,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 261.316,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41606,
    "c": 0.21232,
    "h": 289.5
  },
  "luminance": 0.0592
}

Semantic roles & 50–950 ramp

primary
#521CB4
secondary
#A5CC60
accent
#F038AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #521CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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