#511968#511968

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

Color values

HEX#511968
RGBrgb(81, 25, 104)
HSLhsl(283, 61%, 25%)
HSVhsv(283, 76%, 41%)
CMYKcmyk(22.1%, 76%, 0%, 59.2%)
CIE-LABlab(21.74, 39.02, -34.48)
CIE-LCHlch(21.74, 52.07, 318.53°)
OKLaboklab(34.26% 0.0942 -0.0973)
OKLCHoklch(34.26% 0.135 314.1)
XYZxyz(6.2392, 3.4443, 13.4302)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511968 #306819
analogous
#2A1968 #511968 #681957
triadic
#511968 #685119 #196851
tetradic
#511968 #682A19 #306819 #195768
square
#511968 #682A19 #306819 #195768
split-complementary
#511968 #576819 #19682A
monochromatic
#130619 #2B0D37 #511968 #772599 #9E31CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511968#FFFFFF#000000##FFFFFF
##5119681.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)
#143566
Tritanopia (blue-blind)
#4F2A3F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511968;
/* rgb */ color: rgb(81, 25, 104);
/* oklch */ color: oklch(34.3% 0.135 314.1);
Tailwind
colors: {
  custom: {
    50: '#855c94',
    500: '#511968',
    950: '#000000',
  },
}
SCSS
$custom: #511968;
$custom-light: #855c94;
$custom-dark: #000000;
JSON
{
  "hex": "#511968",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 282.532,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34262,
    "c": 0.13539,
    "h": 314.1
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#511968
secondary
#5B9E3F
accent
#E44372
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511968

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

Preview Lab → · Contrast checker → · Palette generator →

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