#521665#521665

#521665 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.137 H 316.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#521665
RGBrgb(82, 22, 101)
HSLhsl(286, 64%, 24%)
HSVhsv(286, 78%, 40%)
CMYKcmyk(18.8%, 78.2%, 0%, 60.4%)
CIE-LABlab(21.24, 39.85, -33.33)
CIE-LCHlch(21.24, 51.95, 320.10°)
OKLaboklab(33.87% 0.0992 -0.0938)
OKLCHoklch(33.87% 0.137 316.6)
XYZxyz(6.1152, 3.3075, 12.6257)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521665 #296516
analogous
#2B1665 #521665 #651651
triadic
#521665 #655216 #166552
tetradic
#521665 #652B16 #296516 #165165
square
#521665 #652B16 #296516 #165165
split-complementary
#521665 #516516 #16652B
monochromatic
#140519 #290B33 #521665 #7B2197 #A42CCA

Accessibility & contrast

On white

12.64
#521665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#521665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521665
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521665#FFFFFF#000000##FFFFFF
##5216651.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#163563
Tritanopia (blue-blind)
#51273C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521665;
/* rgb */ color: rgb(82, 22, 101);
/* oklch */ color: oklch(33.9% 0.137 316.6);
Tailwind
colors: {
  custom: {
    50: '#865a91',
    500: '#521665',
    950: '#000000',
  },
}
SCSS
$custom: #521665;
$custom-light: #865a91;
$custom-dark: #000000;
JSON
{
  "hex": "#521665",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 285.57,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33865,
    "c": 0.13654,
    "h": 316.6
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

primary
#521665
secondary
#529C3B
accent
#E74169
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521665

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

Preview Lab → · Contrast checker → · Palette generator →

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