#521666#521666

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

Color values

HEX#521666
RGBrgb(82, 22, 102)
HSLhsl(285, 65%, 24%)
HSVhsv(285, 78%, 40%)
CMYKcmyk(19.6%, 78.4%, 0%, 60%)
CIE-LABlab(21.31, 40.07, -33.87)
CIE-LCHlch(21.31, 52.47, 319.80°)
OKLaboklab(33.94% 0.0991 -0.0954)
OKLCHoklch(33.94% 0.138 316.1)
XYZxyz(6.1645, 3.3272, 12.8853)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521666 #2A6616
analogous
#2A1666 #521666 #661652
triadic
#521666 #665216 #166652
tetradic
#521666 #662A16 #2A6616 #165266
square
#521666 #662A16 #2A6616 #165266
split-complementary
#521666 #526616 #16662A
monochromatic
#140519 #2A0B34 #521666 #7A2198 #A32CCB

Accessibility & contrast

On white

12.61
#521666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#521666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521666
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521666#FFFFFF#000000##FFFFFF
##5216661.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#153564
Tritanopia (blue-blind)
#51273D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521666;
/* rgb */ color: rgb(82, 22, 102);
/* oklch */ color: oklch(33.9% 0.138 316.1);
Tailwind
colors: {
  custom: {
    50: '#865a92',
    500: '#521666',
    950: '#000000',
  },
}
SCSS
$custom: #521666;
$custom-light: #865a92;
$custom-dark: #000000;
JSON
{
  "hex": "#521666",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 285,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33941,
    "c": 0.13754,
    "h": 316.1
  },
  "luminance": 0.03327
}

Semantic roles & 50–950 ramp

primary
#521666
secondary
#549D3B
accent
#E8406A
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521666

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

Preview Lab → · Contrast checker → · Palette generator →

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