#521D88#521D88

#521D88 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.165 H 301.1°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#521D88
RGBrgb(82, 29, 136)
HSLhsl(270, 65%, 32%)
HSVhsv(270, 79%, 53%)
CMYKcmyk(39.7%, 78.7%, 0%, 46.7%)
CIE-LABlab(25.11, 45.19, -49.44)
CIE-LCHlch(25.11, 66.99, 312.43°)
OKLaboklab(37.48% 0.085 -0.1412)
OKLCHoklch(37.48% 0.165 301.1)
XYZxyz(8.3619, 4.4501, 23.7062)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521D88 #53881D
analogous
#1D1D88 #521D88 #881D88
triadic
#521D88 #88521D #1D8852
tetradic
#521D88 #881D1D #53881D #1D8888
square
#521D88 #881D1D #53881D #1D8888
split-complementary
#521D88 #88881D #1D881D
monochromatic
#150723 #341256 #521D88 #7028BA #8F48D8

Accessibility & contrast

On white

11.11
#521D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#521D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521D88
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521D88#FFFFFF#000000##FFFFFF
##521D881.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#463952
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #521d88;
/* rgb */ color: rgb(82, 29, 136);
/* oklch */ color: oklch(37.5% 0.165 301.1);
Tailwind
colors: {
  custom: {
    50: '#885fac',
    500: '#521d88',
    950: '#000000',
  },
}
SCSS
$custom: #521d88;
$custom-light: #885fac;
$custom-dark: #000000;
JSON
{
  "hex": "#521d88",
  "rgb": {
    "r": 82,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 269.72,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37484,
    "c": 0.16483,
    "h": 301.1
  },
  "luminance": 0.0445
}

Semantic roles & 50–950 ramp

primary
#521D88
secondary
#81BA47
accent
#E84095
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521D88

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

Preview Lab → · Contrast checker → · Palette generator →

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