#521A67#521A67

#521A67 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.133 H 315.1°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#521A67
RGBrgb(82, 26, 103)
HSLhsl(284, 60%, 25%)
HSVhsv(284, 75%, 40%)
CMYKcmyk(20.4%, 74.8%, 0%, 59.6%)
CIE-LABlab(21.99, 38.58, -33.43)
CIE-LCHlch(21.99, 51.04, 319.09°)
OKLaboklab(34.45% 0.0946 -0.0941)
OKLCHoklch(34.45% 0.133 315.1)
XYZxyz(6.2969, 3.5121, 13.1755)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521A67 #2F671A
analogous
#2B1A67 #521A67 #671A56
triadic
#521A67 #67521A #1A6752
tetradic
#521A67 #672B1A #2F671A #1A5667
square
#521A67 #672B1A #2F671A #1A5667
split-complementary
#521A67 #56671A #1A672B
monochromatic
#130618 #2B0E36 #521A67 #792698 #A033C9

Accessibility & contrast

On white

12.34
#521A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#521A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521A67
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521A67#FFFFFF#000000##FFFFFF
##521A671.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#183665
Tritanopia (blue-blind)
#502A3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521a67;
/* rgb */ color: rgb(82, 26, 103);
/* oklch */ color: oklch(34.4% 0.133 315.1);
Tailwind
colors: {
  custom: {
    50: '#865c93',
    500: '#521a67',
    950: '#000000',
  },
}
SCSS
$custom: #521a67;
$custom-light: #865c93;
$custom-dark: #000000;
JSON
{
  "hex": "#521a67",
  "rgb": {
    "r": 82,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 283.636,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34447,
    "c": 0.13345,
    "h": 315.1
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#521A67
secondary
#599D40
accent
#E34570
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521A67

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

Preview Lab → · Contrast checker → · Palette generator →

#521A67 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva