#521768#521768

#521768 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.138 H 315.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#521768
RGBrgb(82, 23, 104)
HSLhsl(284, 64%, 25%)
HSVhsv(284, 78%, 41%)
CMYKcmyk(21.2%, 77.9%, 0%, 59.2%)
CIE-LABlab(21.60, 40.10, -34.70)
CIE-LCHlch(21.60, 53.03, 319.13°)
OKLaboklab(34.2% 0.0978 -0.0979)
OKLCHoklch(34.2% 0.138 315)
XYZxyz(6.2844, 3.4063, 13.4205)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521768 #2D6817
analogous
#2A1768 #521768 #681755
triadic
#521768 #685217 #176852
tetradic
#521768 #682A17 #2D6817 #175568
square
#521768 #682A17 #2D6817 #175568
split-complementary
#521768 #556817 #17682A
monochromatic
#140619 #2A0C36 #521768 #7A229A #A12DCC

Accessibility & contrast

On white

12.49
#521768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#521768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521768
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521768#FFFFFF#000000##FFFFFF
##5217681.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#143566
Tritanopia (blue-blind)
#50293E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521768;
/* rgb */ color: rgb(82, 23, 104);
/* oklch */ color: oklch(34.2% 0.138 315.0);
Tailwind
colors: {
  custom: {
    50: '#865b94',
    500: '#521768',
    950: '#000000',
  },
}
SCSS
$custom: #521768;
$custom-light: #865b94;
$custom-dark: #000000;
JSON
{
  "hex": "#521768",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 283.704,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34197,
    "c": 0.13831,
    "h": 315
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#521768
secondary
#579E3D
accent
#E7416E
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521768

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

Preview Lab → · Contrast checker → · Palette generator →

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