#521FA8#521FA8

#521FA8 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.197 H 291.9°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#521FA8
RGBrgb(82, 31, 168)
HSLhsl(262, 69%, 39%)
HSVhsv(262, 82%, 66%)
CMYKcmyk(51.2%, 81.5%, 0%, 34.1%)
CIE-LABlab(28.38, 52.63, -63.72)
CIE-LCHlch(28.38, 82.64, 309.55°)
OKLaboklab(40.67% 0.0735 -0.1831)
OKLCHoklch(40.67% 0.197 291.9)
XYZxyz(11.0355, 5.6005, 37.5377)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521FA8 #75A81F
analogous
#1F31A8 #521FA8 #971FA8
triadic
#521FA8 #A8521F #1FA852
tetradic
#521FA8 #A81F31 #75A81F #1FA897
square
#521FA8 #A81F31 #75A81F #1FA897
split-complementary
#521FA8 #A8971F #31A81F
monochromatic
#200C41 #391574 #521FA8 #6C2CD8 #9060E2

Accessibility & contrast

On white

9.90
#521FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#521FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521FA8
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521FA8#FFFFFF#000000##FFFFFF
##521FA81.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#344865
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #521fa8;
/* rgb */ color: rgb(82, 31, 168);
/* oklch */ color: oklch(40.7% 0.197 291.9);
Tailwind
colors: {
  custom: {
    50: '#8c62c3',
    500: '#521fa8',
    950: '#000000',
  },
}
SCSS
$custom: #521fa8;
$custom-light: #8c62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#521fa8",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 262.336,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40674,
    "c": 0.19729,
    "h": 291.9
  },
  "luminance": 0.05601
}

Semantic roles & 50–950 ramp

primary
#521FA8
secondary
#9FC65D
accent
#EC3CAA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #521FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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