#521FA0#521FA0

#521FA0 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.189 H 293.8°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#521FA0
RGBrgb(82, 31, 160)
HSLhsl(264, 68%, 37%)
HSVhsv(264, 81%, 63%)
CMYKcmyk(48.8%, 80.6%, 0%, 37.3%)
CIE-LABlab(27.60, 50.53, -60.15)
CIE-LCHlch(27.60, 78.56, 310.03°)
OKLaboklab(39.9% 0.0762 -0.1726)
OKLCHoklch(39.9% 0.189 293.8)
XYZxyz(10.3131, 5.3115, 33.7327)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521FA0 #6DA01F
analogous
#1F2DA0 #521FA0 #931FA0
triadic
#521FA0 #A0521F #1FA052
tetradic
#521FA0 #A01F2D #6DA01F #1FA093
square
#521FA0 #A01F2D #6DA01F #1FA093
split-complementary
#521FA0 #A0931F #2DA01F
monochromatic
#1D0B39 #38156D #521FA0 #6C29D3 #8F5ADF

Accessibility & contrast

On white

10.18
#521FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#521FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521FA0
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521FA0#FFFFFF#000000##FFFFFF
##521FA01.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#3A4460
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #521fa0;
/* rgb */ color: rgb(82, 31, 160);
/* oklch */ color: oklch(39.9% 0.189 293.8);
Tailwind
colors: {
  custom: {
    50: '#8b62bd',
    500: '#521fa0',
    950: '#000000',
  },
}
SCSS
$custom: #521fa0;
$custom-light: #8b62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#521fa0",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 263.721,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39901,
    "c": 0.1887,
    "h": 293.8
  },
  "luminance": 0.05312
}

Semantic roles & 50–950 ramp

primary
#521FA0
secondary
#99C358
accent
#EA3DA6
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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