#521861#521861

#521861 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.130 H 318.5°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#521861
RGBrgb(82, 24, 97)
HSLhsl(288, 60%, 24%)
HSVhsv(288, 75%, 38%)
CMYKcmyk(15.5%, 75.3%, 0%, 62%)
CIE-LABlab(21.25, 38.14, -30.68)
CIE-LCHlch(21.25, 48.95, 321.19°)
OKLaboklab(33.78% 0.0974 -0.0861)
OKLCHoklch(33.78% 0.13 318.5)
XYZxyz(5.9637, 3.3104, 11.6318)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521861 #276118
analogous
#2D1861 #521861 #61184B
triadic
#521861 #615218 #186152
tetradic
#521861 #612D18 #276118 #184B61
square
#521861 #612D18 #276118 #184B61
split-complementary
#521861 #4B6118 #18612D
monochromatic
#150619 #290C30 #521861 #7B2492 #A530C3

Accessibility & contrast

On white

12.64
#521861 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#521861 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521861
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521861#FFFFFF#000000##FFFFFF
##5218611.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F63
Deuteranopia (green-blind)
#1C355F
Tritanopia (blue-blind)
#52263B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #521861;
/* rgb */ color: rgb(82, 24, 97);
/* oklch */ color: oklch(33.8% 0.130 318.5);
Tailwind
colors: {
  custom: {
    50: '#855b8e',
    500: '#521861',
    950: '#000000',
  },
}
SCSS
$custom: #521861;
$custom-light: #855b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#521861",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 97
  },
  "hsl": {
    "h": 287.671,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33782,
    "c": 0.13001,
    "h": 318.5
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

primary
#521861
secondary
#50973D
accent
#E34465
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #521861

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

Preview Lab → · Contrast checker → · Palette generator →

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