#521E95#521E95

#521E95 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.178 H 296.9°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#521E95
RGBrgb(82, 30, 149)
HSLhsl(266, 66%, 35%)
HSVhsv(266, 80%, 58%)
CMYKcmyk(45%, 79.9%, 0%, 41.6%)
CIE-LABlab(26.43, 48.09, -55.35)
CIE-LCHlch(26.43, 73.32, 310.98°)
OKLaboklab(38.77% 0.0804 -0.1586)
OKLCHoklch(38.77% 0.178 296.9)
XYZxyz(9.3673, 4.8921, 28.8787)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E95 #61951E
analogous
#1E2695 #521E95 #8D1E95
triadic
#521E95 #95521E #1E9552
tetradic
#521E95 #951E26 #61951E #1E958D
square
#521E95 #951E26 #61951E #1E958D
split-complementary
#521E95 #958D1E #26951E
monochromatic
#1A092F #361462 #521E95 #6E28C8 #8E51DC

Accessibility & contrast

On white

10.61
#521E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#521E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E95
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E95#FFFFFF#000000##FFFFFF
##521E951.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003D93
Tritanopia (blue-blind)
#403F59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #521e95;
/* rgb */ color: rgb(82, 30, 149);
/* oklch */ color: oklch(38.8% 0.178 296.9);
Tailwind
colors: {
  custom: {
    50: '#8a61b5',
    500: '#521e95',
    950: '#000000',
  },
}
SCSS
$custom: #521e95;
$custom-light: #8a61b5;
$custom-dark: #000000;
JSON
{
  "hex": "#521e95",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 266.218,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38765,
    "c": 0.17779,
    "h": 296.9
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#521E95
secondary
#8EBF50
accent
#E93E9F
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #521E95

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

Preview Lab → · Contrast checker → · Palette generator →

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