#521782#521782

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

Color values

HEX#521782
RGBrgb(82, 23, 130)
HSLhsl(273, 70%, 30%)
HSVhsv(273, 82%, 51%)
CMYKcmyk(36.9%, 82.3%, 0%, 49%)
CIE-LABlab(23.73, 46.16, -47.92)
CIE-LCHlch(23.73, 66.53, 313.92°)
OKLaboklab(36.36% 0.0919 -0.1367)
OKLCHoklch(36.36% 0.165 303.9)
XYZxyz(7.8144, 4.0184, 21.4787)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521782 #478217
analogous
#1C1782 #521782 #82177D
triadic
#521782 #825217 #178252
tetradic
#521782 #821C17 #478217 #177D82
square
#521782 #821C17 #478217 #177D82
split-complementary
#521782 #7D8217 #17821C
monochromatic
#10051A #310E4E #521782 #7320B6 #9238DC

Accessibility & contrast

On white

11.64
#521782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#521782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521782
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521782#FFFFFF#000000##FFFFFF
##5217821.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#48344D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #521782;
/* rgb */ color: rgb(82, 23, 130);
/* oklch */ color: oklch(36.4% 0.165 303.9);
Tailwind
colors: {
  custom: {
    50: '#885ca7',
    500: '#521782',
    950: '#000000',
  },
}
SCSS
$custom: #521782;
$custom-light: #885ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#521782",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 273.084,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.3636,
    "c": 0.16469,
    "h": 303.9
  },
  "luminance": 0.04018
}

Semantic roles & 50–950 ramp

primary
#521782
secondary
#74B63E
accent
#ED3B8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #521782

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

Preview Lab → · Contrast checker → · Palette generator →

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