#521E9D#521E9D

#521E9D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.186 H 294.7°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#521E9D
RGBrgb(82, 30, 157)
HSLhsl(265, 68%, 37%)
HSVhsv(265, 81%, 62%)
CMYKcmyk(47.8%, 80.9%, 0%, 38.4%)
CIE-LABlab(27.18, 50.16, -59.03)
CIE-LCHlch(27.18, 77.46, 310.36°)
OKLaboklab(39.52% 0.0779 -0.1693)
OKLCHoklch(39.52% 0.186 294.7)
XYZxyz(10.0281, 5.1564, 32.3587)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E9D #699D1E
analogous
#1E2A9D #521E9D #921E9D
triadic
#521E9D #9D521E #1E9D52
tetradic
#521E9D #9D1E2A #699D1E #1E9D92
square
#521E9D #9D1E2A #699D1E #1E9D92
split-complementary
#521E9D #9D921E #2A9D1E
monochromatic
#1C0A36 #37146A #521E9D #6D28D0 #8E57DF

Accessibility & contrast

On white

10.34
#521E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#521E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E9D
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E9D#FFFFFF#000000##FFFFFF
##521E9D1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#3C425E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #521e9d;
/* rgb */ color: rgb(82, 30, 157);
/* oklch */ color: oklch(39.5% 0.186 294.7);
Tailwind
colors: {
  custom: {
    50: '#8b61bb',
    500: '#521e9d',
    950: '#000000',
  },
}
SCSS
$custom: #521e9d;
$custom-light: #8b61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#521e9d",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 264.567,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39516,
    "c": 0.18639,
    "h": 294.7
  },
  "luminance": 0.05157
}

Semantic roles & 50–950 ramp

primary
#521E9D
secondary
#95C254
accent
#EB3DA4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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