#521968#521968

#521968 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.136 H 314.7°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#521968
RGBrgb(82, 25, 104)
HSLhsl(283, 61%, 25%)
HSVhsv(283, 76%, 41%)
CMYKcmyk(21.2%, 76%, 0%, 59.2%)
CIE-LABlab(21.90, 39.25, -34.22)
CIE-LCHlch(21.90, 52.07, 318.92°)
OKLaboklab(34.41% 0.0956 -0.0964)
OKLCHoklch(34.41% 0.136 314.7)
XYZxyz(6.3256, 3.4888, 13.4342)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521968 #2F6819
analogous
#2A1968 #521968 #681956
triadic
#521968 #685219 #196852
tetradic
#521968 #682A19 #2F6819 #195668
square
#521968 #682A19 #2F6819 #195668
split-complementary
#521968 #566819 #19682A
monochromatic
#130619 #2B0D37 #521968 #792599 #A031CB

Accessibility & contrast

On white

12.37
#521968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#521968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521968
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521968#FFFFFF#000000##FFFFFF
##5219681.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#163666
Tritanopia (blue-blind)
#502A3F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521968;
/* rgb */ color: rgb(82, 25, 104);
/* oklch */ color: oklch(34.4% 0.136 314.7);
Tailwind
colors: {
  custom: {
    50: '#865c94',
    500: '#521968',
    950: '#000000',
  },
}
SCSS
$custom: #521968;
$custom-light: #865c94;
$custom-dark: #000000;
JSON
{
  "hex": "#521968",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 283.291,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34411,
    "c": 0.13579,
    "h": 314.7
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#521968
secondary
#599E3F
accent
#E44370
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #521968

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

Preview Lab → · Contrast checker → · Palette generator →

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