#511E57#511E57

#511E57 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.7% C 0.110 H 323.3°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#511E57
RGBrgb(81, 30, 87)
HSLhsl(294, 49%, 23%)
HSVhsv(294, 66%, 34%)
CMYKcmyk(6.9%, 65.5%, 0%, 65.9%)
CIE-LABlab(21.45, 32.86, -23.72)
CIE-LCHlch(21.45, 40.53, 324.17°)
OKLaboklab(33.69% 0.0885 -0.0659)
OKLCHoklch(33.69% 0.11 323.3)
XYZxyz(5.5777, 3.3663, 9.3709)
Luminance0.0337 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E57 #24571E
analogous
#341E57 #511E57 #571E40
triadic
#511E57 #57511E #1E5751
tetradic
#511E57 #57341E #24571E #1E4057
square
#511E57 #57341E #24571E #1E4057
split-complementary
#511E57 #40571E #1E5734
monochromatic
#150817 #270E29 #511E57 #7B2E85 #A63DB2

Accessibility & contrast

On white

12.55
#511E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E57
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E57#FFFFFF#000000##FFFFFF
##511E571.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133059
Deuteranopia (green-blind)
#263655
Tritanopia (blue-blind)
#522637
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511e57;
/* rgb */ color: rgb(81, 30, 87);
/* oklch */ color: oklch(33.7% 0.110 323.3);
Tailwind
colors: {
  custom: {
    50: '#845e86',
    500: '#511e57',
    950: '#000000',
  },
}
SCSS
$custom: #511e57;
$custom-light: #845e86;
$custom-dark: #000000;
JSON
{
  "hex": "#511e57",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 87
  },
  "hsl": {
    "h": 293.684,
    "s": 48.718,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33688,
    "c": 0.11032,
    "h": 323.3
  },
  "luminance": 0.03366
}

Semantic roles & 50–950 ramp

primary
#511E57
secondary
#4C8C45
accent
#D8505E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511E57

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

Preview Lab → · Contrast checker → · Palette generator →

#511E57 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva