#511159#511159

#511159 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.131 H 323.0°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#511159
RGBrgb(81, 17, 89)
HSLhsl(293, 68%, 21%)
HSVhsv(293, 81%, 35%)
CMYKcmyk(9%, 80.9%, 0%, 65.1%)
CIE-LABlab(19.52, 39.06, -28.14)
CIE-LCHlch(19.52, 48.14, 324.23°)
OKLaboklab(32.34% 0.1043 -0.0786)
OKLCHoklch(32.34% 0.131 323)
XYZxyz(5.3968, 2.8718, 9.7193)
Luminance0.0287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511159 #195911
analogous
#2D1159 #511159 #59113D
triadic
#511159 #595111 #115951
tetradic
#511159 #592D11 #195911 #113D59
square
#511159 #592D11 #195911 #113D59
split-complementary
#511159 #3D5911 #11592D
monochromatic
#17051A #220726 #511159 #801B8C #AF25C0

Accessibility & contrast

On white

13.34
#511159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#511159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511159
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511159#FFFFFF#000000##FFFFFF
##5111591.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#1D3257
Tritanopia (blue-blind)
#521F34
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511159;
/* rgb */ color: rgb(81, 17, 89);
/* oklch */ color: oklch(32.3% 0.131 323.0);
Tailwind
colors: {
  custom: {
    50: '#855788',
    500: '#511159',
    950: '#000000',
  },
}
SCSS
$custom: #511159;
$custom-light: #855788;
$custom-dark: #000000;
JSON
{
  "hex": "#511159",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 293.333,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32341,
    "c": 0.13061,
    "h": 323
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#511159
secondary
#3E9234
accent
#EB3D50
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #511159

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

Preview Lab → · Contrast checker → · Palette generator →

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