#521E9F#521E9F

#521E9F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.189 H 294.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#521E9F
RGBrgb(82, 30, 159)
HSLhsl(264, 68%, 37%)
HSVhsv(264, 81%, 62%)
CMYKcmyk(48.4%, 81.1%, 0%, 37.6%)
CIE-LABlab(27.37, 50.68, -59.93)
CIE-LCHlch(27.37, 78.49, 310.22°)
OKLaboklab(39.71% 0.0773 -0.172)
OKLCHoklch(39.71% 0.189 294.2)
XYZxyz(10.2002, 5.2253, 33.2653)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E9F #6B9F1E
analogous
#1E2B9F #521E9F #931E9F
triadic
#521E9F #9F521E #1E9F52
tetradic
#521E9F #9F1E2B #6B9F1E #1E9F93
square
#521E9F #9F1E2B #6B9F1E #1E9F93
split-complementary
#521E9F #9F931E #2B9F1E
monochromatic
#1D0B38 #37146C #521E9F #6D28D2 #8F58DF

Accessibility & contrast

On white

10.27
#521E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#521E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E9F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E9F#FFFFFF#000000##FFFFFF
##521E9F1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#3A435F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #521e9f;
/* rgb */ color: rgb(82, 30, 159);
/* oklch */ color: oklch(39.7% 0.189 294.2);
Tailwind
colors: {
  custom: {
    50: '#8b61bc',
    500: '#521e9f',
    950: '#000000',
  },
}
SCSS
$custom: #521e9f;
$custom-light: #8b61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#521e9f",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 264.186,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39707,
    "c": 0.18853,
    "h": 294.2
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#521E9F
secondary
#97C356
accent
#EB3DA5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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