#521BB4#521BB4

#521BB4 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.5% C 0.213 H 289.6°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#521BB4
RGBrgb(82, 27, 180)
HSLhsl(262, 74%, 41%)
HSVhsv(262, 85%, 71%)
CMYKcmyk(54.4%, 85%, 0%, 29.4%)
CIE-LABlab(29.09, 57.23, -69.75)
CIE-LCHlch(29.09, 90.23, 309.37°)
OKLaboklab(41.53% 0.0715 -0.2007)
OKLCHoklch(41.53% 0.213 289.6)
XYZxyz(12.1074, 5.8724, 43.6667)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521BB4 #7DB41B
analogous
#1B30B4 #521BB4 #9E1BB4
triadic
#521BB4 #B4521B #1BB452
tetradic
#521BB4 #B41B30 #7DB41B #1BB49E
square
#521BB4 #B41B30 #7DB41B #1BB49E
split-complementary
#521BB4 #B49E1B #30B41B
monochromatic
#220B4A #3A137F #521BB4 #6D2DDF #9262E7

Accessibility & contrast

On white

9.66
#521BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#521BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521BB4
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521BB4#FFFFFF#000000##FFFFFF
##521BB41.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521bb4;
/* rgb */ color: rgb(82, 27, 180);
/* oklch */ color: oklch(41.5% 0.213 289.6);
Tailwind
colors: {
  custom: {
    50: '#8e61cc',
    500: '#521bb4',
    950: '#000000',
  },
}
SCSS
$custom: #521bb4;
$custom-light: #8e61cc;
$custom-dark: #000000;
JSON
{
  "hex": "#521bb4",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 261.569,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41525,
    "c": 0.21303,
    "h": 289.6
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#521BB4
secondary
#A5CC5F
accent
#F137AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0514
muted
#7E7A82

Preview Lab

Preview with #521BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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