#521167#521167

#521167 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.144 H 316.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#521167
RGBrgb(82, 17, 103)
HSLhsl(285, 72%, 24%)
HSVhsv(285, 83%, 40%)
CMYKcmyk(20.4%, 83.5%, 0%, 59.6%)
CIE-LABlab(20.73, 42.18, -35.46)
CIE-LCHlch(20.73, 55.10, 319.95°)
OKLaboklab(33.56% 0.1037 -0.1)
OKLCHoklch(33.56% 0.144 316)
XYZxyz(6.1279, 3.1743, 13.1192)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521167 #266711
analogous
#271167 #521167 #671151
triadic
#521167 #675211 #116752
tetradic
#521167 #672711 #266711 #115167
square
#521167 #672711 #266711 #115167
split-complementary
#521167 #516711 #116727
monochromatic
#15041A #280832 #521167 #7C1A9C #A622D0

Accessibility & contrast

On white

12.85
#521167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#521167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521167
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521167#FFFFFF#000000##FFFFFF
##5211671.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E69
Deuteranopia (green-blind)
#0F3465
Tritanopia (blue-blind)
#51253C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521167;
/* rgb */ color: rgb(82, 17, 103);
/* oklch */ color: oklch(33.6% 0.144 316.0);
Tailwind
colors: {
  custom: {
    50: '#865893',
    500: '#521167',
    950: '#000000',
  },
}
SCSS
$custom: #521167;
$custom-light: #865893;
$custom-dark: #000000;
JSON
{
  "hex": "#521167",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 285.349,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33555,
    "c": 0.14408,
    "h": 316
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#521167
secondary
#4F9F35
accent
#EE3966
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #521167

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

Preview Lab → · Contrast checker → · Palette generator →

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