#521889#521889

#521889 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.171 H 301.4°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#521889
RGBrgb(82, 24, 137)
HSLhsl(271, 70%, 32%)
HSVhsv(271, 82%, 54%)
CMYKcmyk(40.1%, 82.5%, 0%, 46.3%)
CIE-LABlab(24.49, 47.48, -51.08)
CIE-LCHlch(24.49, 69.73, 312.91°)
OKLaboklab(37.08% 0.0889 -0.146)
OKLCHoklch(37.08% 0.171 301.4)
XYZxyz(8.3206, 4.2532, 24.0446)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521889 #4F8918
analogous
#191889 #521889 #891888
triadic
#521889 #895218 #188952
tetradic
#521889 #891918 #4F8918 #188889
square
#521889 #891918 #4F8918 #188889
split-complementary
#521889 #888918 #188919
monochromatic
#140621 #330F55 #521889 #7121BD #903EDD

Accessibility & contrast

On white

11.35
#521889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#521889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521889
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521889#FFFFFF#000000##FFFFFF
##5218891.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#463751
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521889;
/* rgb */ color: rgb(82, 24, 137);
/* oklch */ color: oklch(37.1% 0.171 301.4);
Tailwind
colors: {
  custom: {
    50: '#895dac',
    500: '#521889',
    950: '#000000',
  },
}
SCSS
$custom: #521889;
$custom-light: #895dac;
$custom-dark: #000000;
JSON
{
  "hex": "#521889",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 270.796,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37082,
    "c": 0.17091,
    "h": 301.4
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#521889
secondary
#7DBD40
accent
#ED3B92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521889

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

Preview Lab → · Contrast checker → · Palette generator →

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