#521788#521788

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

Color values

HEX#521788
RGBrgb(82, 23, 136)
HSLhsl(271, 71%, 31%)
HSVhsv(271, 83%, 53%)
CMYKcmyk(39.7%, 83.1%, 0%, 46.7%)
CIE-LABlab(24.27, 47.61, -50.81)
CIE-LCHlch(24.27, 69.63, 313.14°)
OKLaboklab(36.9% 0.09 -0.1452)
OKLCHoklch(36.9% 0.171 301.8)
XYZxyz(8.2289, 4.1842, 23.6619)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521788 #4D8817
analogous
#191788 #521788 #881785
triadic
#521788 #885217 #178852
tetradic
#521788 #881917 #4D8817 #178588
square
#521788 #881917 #4D8817 #178588
split-complementary
#521788 #858817 #178819
monochromatic
#13051F #320E54 #521788 #7220BC #903BDE

Accessibility & contrast

On white

11.43
#521788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521788
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521788#FFFFFF#000000##FFFFFF
##5217881.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#463750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521788;
/* rgb */ color: rgb(82, 23, 136);
/* oklch */ color: oklch(36.9% 0.171 301.8);
Tailwind
colors: {
  custom: {
    50: '#895dac',
    500: '#521788',
    950: '#000000',
  },
}
SCSS
$custom: #521788;
$custom-light: #895dac;
$custom-dark: #000000;
JSON
{
  "hex": "#521788",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 271.327,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36901,
    "c": 0.17081,
    "h": 301.8
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#521788
secondary
#7BBC3F
accent
#EE3A90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521788

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

Preview Lab → · Contrast checker → · Palette generator →

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