#521681#521681

#521681 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.165 H 304.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#521681
RGBrgb(82, 22, 129)
HSLhsl(274, 71%, 30%)
HSVhsv(274, 83%, 51%)
CMYKcmyk(36.4%, 82.9%, 0%, 49.4%)
CIE-LABlab(23.51, 46.29, -47.65)
CIE-LCHlch(23.51, 66.43, 314.17°)
OKLaboklab(36.18% 0.093 -0.1359)
OKLCHoklch(36.18% 0.165 304.4)
XYZxyz(7.7281, 3.9527, 21.1204)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521681 #458116
analogous
#1D1681 #521681 #81167B
triadic
#521681 #815216 #168152
tetradic
#521681 #811D16 #458116 #167B81
square
#521681 #811D16 #458116 #167B81
split-complementary
#521681 #7B8116 #16811D
monochromatic
#11041A #310D4D #521681 #731FB5 #9335DD

Accessibility & contrast

On white

11.73
#521681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#521681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521681
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521681#FFFFFF#000000##FFFFFF
##5216811.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#49334C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #521681;
/* rgb */ color: rgb(82, 22, 129);
/* oklch */ color: oklch(36.2% 0.165 304.4);
Tailwind
colors: {
  custom: {
    50: '#885ca6',
    500: '#521681',
    950: '#000000',
  },
}
SCSS
$custom: #521681;
$custom-light: #885ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#521681",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 273.645,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36181,
    "c": 0.16463,
    "h": 304.4
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#521681
secondary
#72B63D
accent
#EE3A89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #521681

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

Preview Lab → · Contrast checker → · Palette generator →

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