#521986#521986

#521986 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.167 H 302.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#521986
RGBrgb(82, 25, 134)
HSLhsl(271, 69%, 31%)
HSVhsv(271, 81%, 53%)
CMYKcmyk(38.8%, 81.3%, 0%, 47.5%)
CIE-LABlab(24.35, 46.35, -49.42)
CIE-LCHlch(24.35, 67.76, 313.17°)
OKLaboklab(36.9% 0.089 -0.1411)
OKLCHoklch(36.9% 0.167 302.2)
XYZxyz(8.1293, 4.2103, 22.9340)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521986 #4D8619
analogous
#1B1986 #521986 #861983
triadic
#521986 #865219 #198652
tetradic
#521986 #861B19 #4D8619 #198386
square
#521986 #861B19 #4D8619 #198386
split-complementary
#521986 #838619 #19861B
monochromatic
#13061F #320F52 #521986 #7223BA #903EDB

Accessibility & contrast

On white

11.40
#521986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#521986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521986
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521986#FFFFFF#000000##FFFFFF
##5219861.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#473750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521986;
/* rgb */ color: rgb(82, 25, 134);
/* oklch */ color: oklch(36.9% 0.167 302.2);
Tailwind
colors: {
  custom: {
    50: '#885daa',
    500: '#521986',
    950: '#000000',
  },
}
SCSS
$custom: #521986;
$custom-light: #885daa;
$custom-dark: #000000;
JSON
{
  "hex": "#521986",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 271.376,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36904,
    "c": 0.16685,
    "h": 302.2
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#521986
secondary
#7BBA41
accent
#EB3C90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521986

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

Preview Lab → · Contrast checker → · Palette generator →

#521986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva