#521EB4#521EB4

#521EB4 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.8% C 0.211 H 289.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#521EB4
RGBrgb(82, 30, 180)
HSLhsl(261, 71%, 41%)
HSVhsv(261, 83%, 71%)
CMYKcmyk(54.4%, 83.3%, 0%, 29.4%)
CIE-LABlab(29.46, 56.15, -69.14)
CIE-LCHlch(29.46, 89.07, 309.08°)
OKLaboklab(41.78% 0.0699 -0.1989)
OKLCHoklch(41.78% 0.211 289.4)
XYZxyz(12.1798, 6.0171, 43.6908)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521EB4 #80B41E
analogous
#1E35B4 #521EB4 #9D1EB4
triadic
#521EB4 #B4521E #1EB452
tetradic
#521EB4 #B41E35 #80B41E #1EB49D
square
#521EB4 #B41E35 #80B41E #1EB49D
split-complementary
#521EB4 #B49D1E #35B41E
monochromatic
#220D4B #3A1580 #521EB4 #6D32DD #9367E6

Accessibility & contrast

On white

9.53
#521EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#521EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521EB4
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521EB4#FFFFFF#000000##FFFFFF
##521EB41.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521eb4;
/* rgb */ color: rgb(82, 30, 180);
/* oklch */ color: oklch(41.8% 0.211 289.4);
Tailwind
colors: {
  custom: {
    50: '#8e63cc',
    500: '#521eb4',
    950: '#000000',
  },
}
SCSS
$custom: #521eb4;
$custom-light: #8e63cc;
$custom-dark: #000000;
JSON
{
  "hex": "#521eb4",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 260.8,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41776,
    "c": 0.21084,
    "h": 289.4
  },
  "luminance": 0.06018
}

Semantic roles & 50–950 ramp

primary
#521EB4
secondary
#A7CB63
accent
#EE3AB0
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #521EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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