#521B85#521B85

#521B85 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.164 H 302.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#521B85
RGBrgb(82, 27, 133)
HSLhsl(271, 66%, 31%)
HSVhsv(271, 80%, 52%)
CMYKcmyk(38.3%, 79.7%, 0%, 47.8%)
CIE-LABlab(24.55, 45.29, -48.48)
CIE-LCHlch(24.55, 66.34, 313.06°)
OKLaboklab(37.01% 0.0876 -0.1383)
OKLCHoklch(37.01% 0.164 302.3)
XYZxyz(8.1042, 4.2711, 22.5832)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B85 #4E851B
analogous
#1D1B85 #521B85 #851B83
triadic
#521B85 #85521B #1B8552
tetradic
#521B85 #851D1B #4E851B #1B8385
square
#521B85 #851D1B #4E851B #1B8385
split-complementary
#521B85 #83851B #1B851D
monochromatic
#13061F #331152 #521B85 #7125B8 #9042D9

Accessibility & contrast

On white

11.33
#521B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#521B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521B85
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B85#FFFFFF#000000##FFFFFF
##521B851.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003A83
Tritanopia (blue-blind)
#473750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521b85;
/* rgb */ color: rgb(82, 27, 133);
/* oklch */ color: oklch(37.0% 0.164 302.3);
Tailwind
colors: {
  custom: {
    50: '#885ea9',
    500: '#521b85',
    950: '#000000',
  },
}
SCSS
$custom: #521b85;
$custom-light: #885ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#521b85",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 271.132,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37011,
    "c": 0.16376,
    "h": 302.3
  },
  "luminance": 0.04271
}

Semantic roles & 50–950 ramp

primary
#521B85
secondary
#7CB844
accent
#E93F91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521B85

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

Preview Lab → · Contrast checker → · Palette generator →

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