#521366#521366

#521366 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.141 H 316.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#521366
RGBrgb(82, 19, 102)
HSLhsl(286, 69%, 24%)
HSVhsv(286, 81%, 40%)
CMYKcmyk(19.6%, 81.4%, 0%, 60%)
CIE-LABlab(20.90, 41.25, -34.52)
CIE-LCHlch(20.90, 53.79, 320.07°)
OKLaboklab(33.65% 0.1021 -0.0973)
OKLCHoklch(33.65% 0.141 316.4)
XYZxyz(6.1105, 3.2191, 12.8673)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521366 #276613
analogous
#281366 #521366 #661350
triadic
#521366 #665213 #136652
tetradic
#521366 #662813 #276613 #135066
square
#521366 #662813 #276613 #135066
split-complementary
#521366 #506613 #136628
monochromatic
#15051A #290932 #521366 #7B1D9A #A526CD

Accessibility & contrast

On white

12.78
#521366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#521366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521366
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521366#FFFFFF#000000##FFFFFF
##5213661.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#133464
Tritanopia (blue-blind)
#51263C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521366;
/* rgb */ color: rgb(82, 19, 102);
/* oklch */ color: oklch(33.7% 0.141 316.4);
Tailwind
colors: {
  custom: {
    50: '#865992',
    500: '#521366',
    950: '#000000',
  },
}
SCSS
$custom: #521366;
$custom-light: #865992;
$custom-dark: #000000;
JSON
{
  "hex": "#521366",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 285.542,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33652,
    "c": 0.14101,
    "h": 316.4
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#521366
secondary
#509D37
accent
#EB3C67
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521366

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

Preview Lab → · Contrast checker → · Palette generator →

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