#521789#521789

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

Color values

HEX#521789
RGBrgb(82, 23, 137)
HSLhsl(271, 71%, 31%)
HSVhsv(271, 83%, 54%)
CMYKcmyk(40.1%, 83.2%, 0%, 46.3%)
CIE-LABlab(24.36, 47.85, -51.29)
CIE-LCHlch(24.36, 70.14, 313.02°)
OKLaboklab(36.99% 0.0897 -0.1466)
OKLCHoklch(36.99% 0.172 301.5)
XYZxyz(8.3003, 4.2127, 24.0379)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521789 #4E8917
analogous
#191789 #521789 #891787
triadic
#521789 #895217 #178952
tetradic
#521789 #891917 #4E8917 #178789
square
#521789 #891917 #4E8917 #178789
split-complementary
#521789 #878917 #178919
monochromatic
#130520 #330E55 #521789 #7120BD #903CDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##521789#FFFFFF#000000##FFFFFF
##5217891.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)
#00398C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#463751
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521789;
/* rgb */ color: rgb(82, 23, 137);
/* oklch */ color: oklch(37.0% 0.172 301.5);
Tailwind
colors: {
  custom: {
    50: '#895dac',
    500: '#521789',
    950: '#000000',
  },
}
SCSS
$custom: #521789;
$custom-light: #895dac;
$custom-dark: #000000;
JSON
{
  "hex": "#521789",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 271.053,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36993,
    "c": 0.17183,
    "h": 301.5
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#521789
secondary
#7CBD3F
accent
#EE3A91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521789

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

Preview Lab → · Contrast checker → · Palette generator →

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