#521868#521868

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

Color values

HEX#521868
RGBrgb(82, 24, 104)
HSLhsl(284, 63%, 25%)
HSVhsv(284, 77%, 41%)
CMYKcmyk(21.2%, 76.9%, 0%, 59.2%)
CIE-LABlab(21.75, 39.68, -34.46)
CIE-LCHlch(21.75, 52.55, 319.03°)
OKLaboklab(34.3% 0.0967 -0.0971)
OKLCHoklch(34.3% 0.137 314.9)
XYZxyz(6.3046, 3.4468, 13.4272)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521868 #2E6818
analogous
#2A1868 #521868 #681856
triadic
#521868 #685218 #186852
tetradic
#521868 #682A18 #2E6818 #185668
square
#521868 #682A18 #2E6818 #185668
split-complementary
#521868 #566818 #18682A
monochromatic
#140619 #2B0D36 #521868 #79239A #A02FCB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##521868#FFFFFF#000000##FFFFFF
##5218681.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)
#00316A
Deuteranopia (green-blind)
#153666
Tritanopia (blue-blind)
#50293E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521868;
/* rgb */ color: rgb(82, 24, 104);
/* oklch */ color: oklch(34.3% 0.137 314.9);
Tailwind
colors: {
  custom: {
    50: '#865b94',
    500: '#521868',
    950: '#000000',
  },
}
SCSS
$custom: #521868;
$custom-light: #865b94;
$custom-dark: #000000;
JSON
{
  "hex": "#521868",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 283.5,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34302,
    "c": 0.13707,
    "h": 314.9
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#521868
secondary
#589E3E
accent
#E6426F
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521868

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

Preview Lab → · Contrast checker → · Palette generator →

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