#521966#521966

#521966 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.134 H 315.8°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#521966
RGBrgb(82, 25, 102)
HSLhsl(284, 61%, 25%)
HSVhsv(284, 75%, 40%)
CMYKcmyk(19.6%, 75.5%, 0%, 60%)
CIE-LABlab(21.76, 38.80, -33.14)
CIE-LCHlch(21.76, 51.03, 319.49°)
OKLaboklab(34.26% 0.0958 -0.0933)
OKLCHoklch(34.26% 0.134 315.8)
XYZxyz(6.2252, 3.4486, 12.9055)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521966 #2D6619
analogous
#2C1966 #521966 #661953
triadic
#521966 #665219 #196652
tetradic
#521966 #662C19 #2D6619 #195366
square
#521966 #662C19 #2D6619 #195366
split-complementary
#521966 #536619 #19662C
monochromatic
#140619 #2A0D35 #521966 #7A2597 #A131C8

Accessibility & contrast

On white

12.43
#521966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#521966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521966
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521966#FFFFFF#000000##FFFFFF
##5219661.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#183664
Tritanopia (blue-blind)
#51293E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521966;
/* rgb */ color: rgb(82, 25, 102);
/* oklch */ color: oklch(34.3% 0.134 315.8);
Tailwind
colors: {
  custom: {
    50: '#865c92',
    500: '#521966',
    950: '#000000',
  },
}
SCSS
$custom: #521966;
$custom-light: #865c92;
$custom-dark: #000000;
JSON
{
  "hex": "#521966",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 284.416,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3426,
    "c": 0.13374,
    "h": 315.8
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#521966
secondary
#579C3F
accent
#E4446E
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521966

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

Preview Lab → · Contrast checker → · Palette generator →

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