#521264#521264

#521264 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.4% C 0.140 H 317.5°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#521264
RGBrgb(82, 18, 100)
HSLhsl(287, 69%, 23%)
HSVhsv(287, 82%, 39%)
CMYKcmyk(18%, 82%, 0%, 60.8%)
CIE-LABlab(20.62, 41.19, -33.66)
CIE-LCHlch(20.62, 53.19, 320.74°)
OKLaboklab(33.41% 0.1033 -0.0947)
OKLCHoklch(33.41% 0.14 317.5)
XYZxyz(5.9959, 3.1468, 12.3457)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521264 #246412
analogous
#291264 #521264 #64124D
triadic
#521264 #645212 #126452
tetradic
#521264 #642912 #246412 #124D64
square
#521264 #642912 #246412 #124D64
split-complementary
#521264 #4D6412 #126429
monochromatic
#15051A #270930 #521264 #7D1B98 #A725CC

Accessibility & contrast

On white

12.89
#521264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521264
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521264#FFFFFF#000000##FFFFFF
##5212641.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#143462
Tritanopia (blue-blind)
#51243B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #521264;
/* rgb */ color: rgb(82, 18, 100);
/* oklch */ color: oklch(33.4% 0.140 317.5);
Tailwind
colors: {
  custom: {
    50: '#865891',
    500: '#521264',
    950: '#000000',
  },
}
SCSS
$custom: #521264;
$custom-light: #865891;
$custom-dark: #000000;
JSON
{
  "hex": "#521264",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 286.829,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33408,
    "c": 0.1402,
    "h": 317.5
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#521264
secondary
#4C9C36
accent
#EC3B62
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040D
muted
#7C797D

Preview Lab

Preview with #521264

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

Preview Lab → · Contrast checker → · Palette generator →

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