#521FB0#521FB0

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

Color values

HEX#521FB0
RGBrgb(82, 31, 176)
HSLhsl(261, 70%, 41%)
HSVhsv(261, 82%, 69%)
CMYKcmyk(53.4%, 82.4%, 0%, 31%)
CIE-LABlab(29.18, 54.72, -67.21)
CIE-LCHlch(29.18, 86.67, 309.15°)
OKLaboklab(41.46% 0.0707 -0.1933)
OKLCHoklch(41.46% 0.206 290.1)
XYZxyz(11.8039, 5.9079, 41.5842)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521FB0 #7DB01F
analogous
#1F35B0 #521FB0 #9A1FB0
triadic
#521FB0 #B0521F #1FB052
tetradic
#521FB0 #B01F35 #7DB01F #1FB09A
square
#521FB0 #B01F35 #7DB01F #1FB09A
split-complementary
#521FB0 #B09A1F #35B01F
monochromatic
#220D48 #3A167C #521FB0 #6D31DB #9265E4

Accessibility & contrast

On white

9.63
#521FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521FB0
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521FB0#FFFFFF#000000##FFFFFF
##521FB01.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B4
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#2E4B69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #521fb0;
/* rgb */ color: rgb(82, 31, 176);
/* oklch */ color: oklch(41.5% 0.206 290.1);
Tailwind
colors: {
  custom: {
    50: '#8d63c9',
    500: '#521fb0',
    950: '#000000',
  },
}
SCSS
$custom: #521fb0;
$custom-light: #8d63c9;
$custom-dark: #000000;
JSON
{
  "hex": "#521fb0",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 176
  },
  "hsl": {
    "h": 261.103,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41464,
    "c": 0.20583,
    "h": 290.1
  },
  "luminance": 0.05908
}

Semantic roles & 50–950 ramp

primary
#521FB0
secondary
#A5C962
accent
#ED3BAE
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #521FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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