#511759#511759

#511759 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.123 H 322.6°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#511759
RGBrgb(81, 23, 89)
HSLhsl(293, 59%, 22%)
HSVhsv(293, 74%, 35%)
CMYKcmyk(9%, 74.2%, 0%, 65.1%)
CIE-LABlab(20.38, 36.63, -26.77)
CIE-LCHlch(20.38, 45.37, 323.84°)
OKLaboklab(32.95% 0.0977 -0.0747)
OKLCHoklch(32.95% 0.123 322.6)
XYZxyz(5.5027, 3.0837, 9.7546)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511759 #1F5917
analogous
#301759 #511759 #591740
triadic
#511759 #595117 #175951
tetradic
#511759 #593017 #1F5917 #174059
square
#511759 #593017 #1F5917 #174059
split-complementary
#511759 #405917 #175930
monochromatic
#160618 #250A28 #511759 #7D248A #AA30BA

Accessibility & contrast

On white

12.99
#511759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511759
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511759#FFFFFF#000000##FFFFFF
##5117591.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042D5B
Deuteranopia (green-blind)
#213357
Tritanopia (blue-blind)
#522236
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511759;
/* rgb */ color: rgb(81, 23, 89);
/* oklch */ color: oklch(33.0% 0.123 322.6);
Tailwind
colors: {
  custom: {
    50: '#845a88',
    500: '#511759',
    950: '#000000',
  },
}
SCSS
$custom: #511759;
$custom-light: #845a88;
$custom-dark: #000000;
JSON
{
  "hex": "#511759",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 292.727,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3295,
    "c": 0.12297,
    "h": 322.6
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#511759
secondary
#46903C
accent
#E24659
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511759

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

Preview Lab → · Contrast checker → · Palette generator →

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