#521FA7#521FA7

#521FA7 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.196 H 292.1°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#521FA7
RGBrgb(82, 31, 167)
HSLhsl(263, 69%, 39%)
HSVhsv(263, 81%, 65%)
CMYKcmyk(50.9%, 81.4%, 0%, 34.5%)
CIE-LABlab(28.28, 52.36, -63.28)
CIE-LCHlch(28.28, 82.13, 309.61°)
OKLaboklab(40.58% 0.0739 -0.1818)
OKLCHoklch(40.58% 0.196 292.1)
XYZxyz(10.9427, 5.5634, 37.0490)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521FA7 #74A71F
analogous
#1F30A7 #521FA7 #961FA7
triadic
#521FA7 #A7521F #1FA752
tetradic
#521FA7 #A71F30 #74A71F #1FA796
square
#521FA7 #A71F30 #74A71F #1FA796
split-complementary
#521FA7 #A7961F #30A71F
monochromatic
#1F0C40 #391573 #521FA7 #6C2BD8 #905FE1

Accessibility & contrast

On white

9.94
#521FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#521FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521FA7
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521FA7#FFFFFF#000000##FFFFFF
##521FA71.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#354764
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #521fa7;
/* rgb */ color: rgb(82, 31, 167);
/* oklch */ color: oklch(40.6% 0.196 292.1);
Tailwind
colors: {
  custom: {
    50: '#8c62c2',
    500: '#521fa7',
    950: '#000000',
  },
}
SCSS
$custom: #521fa7;
$custom-light: #8c62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#521fa7",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 262.5,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40577,
    "c": 0.19621,
    "h": 292.1
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #521FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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