#511157#511157

#511157 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.129 H 324.2°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#511157
RGBrgb(81, 17, 87)
HSLhsl(295, 67%, 20%)
HSVhsv(295, 80%, 34%)
CMYKcmyk(6.9%, 80.5%, 0%, 65.9%)
CIE-LABlab(19.39, 38.66, -27.01)
CIE-LCHlch(19.39, 47.17, 325.06°)
OKLaboklab(32.2% 0.1044 -0.0753)
OKLCHoklch(32.2% 0.129 324.2)
XYZxyz(5.3139, 2.8387, 9.2830)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511157 #175711
analogous
#2E1157 #511157 #57113A
triadic
#511157 #575111 #115751
tetradic
#511157 #572E11 #175711 #113A57
square
#511157 #572E11 #175711 #113A57
split-complementary
#511157 #3A5711 #11572E
monochromatic
#18051A #210724 #511157 #811B8A #B025BD

Accessibility & contrast

On white

13.40
#511157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511157
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511157#FFFFFF#000000##FFFFFF
##5111571.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#1E3255
Tritanopia (blue-blind)
#531E33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511157;
/* rgb */ color: rgb(81, 17, 87);
/* oklch */ color: oklch(32.2% 0.129 324.2);
Tailwind
colors: {
  custom: {
    50: '#855787',
    500: '#511157',
    950: '#000000',
  },
}
SCSS
$custom: #511157;
$custom-light: #855787;
$custom-dark: #000000;
JSON
{
  "hex": "#511157",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 294.857,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32199,
    "c": 0.12877,
    "h": 324.2
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#511157
secondary
#3C9034
accent
#EA3E4C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #511157

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

Preview Lab → · Contrast checker → · Palette generator →

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