#521FA1#521FA1

#521FA1 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.190 H 293.6°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#521FA1
RGBrgb(82, 31, 161)
HSLhsl(264, 68%, 38%)
HSVhsv(264, 81%, 63%)
CMYKcmyk(49.1%, 80.7%, 0%, 36.9%)
CIE-LABlab(27.70, 50.79, -60.60)
CIE-LCHlch(27.70, 79.07, 309.97°)
OKLaboklab(40% 0.0759 -0.1739)
OKLCHoklch(40% 0.19 293.6)
XYZxyz(10.4009, 5.3467, 34.1953)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521FA1 #6EA11F
analogous
#1F2DA1 #521FA1 #931FA1
triadic
#521FA1 #A1521F #1FA152
tetradic
#521FA1 #A11F2D #6EA11F #1FA193
square
#521FA1 #A11F2D #6EA11F #1FA193
split-complementary
#521FA1 #A1931F #2DA11F
monochromatic
#1E0B3A #38156E #521FA1 #6C29D4 #8F5BDF

Accessibility & contrast

On white

10.15
#521FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#521FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521FA1
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521FA1#FFFFFF#000000##FFFFFF
##521FA11.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#394560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #521fa1;
/* rgb */ color: rgb(82, 31, 161);
/* oklch */ color: oklch(40.0% 0.190 293.6);
Tailwind
colors: {
  custom: {
    50: '#8b62be',
    500: '#521fa1',
    950: '#000000',
  },
}
SCSS
$custom: #521fa1;
$custom-light: #8b62be;
$custom-dark: #000000;
JSON
{
  "hex": "#521fa1",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 263.538,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39997,
    "c": 0.18978,
    "h": 293.6
  },
  "luminance": 0.05347
}

Semantic roles & 50–950 ramp

primary
#521FA1
secondary
#99C458
accent
#EB3DA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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