#511E5B#511E5B

#511E5B is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.9% C 0.115 H 320.7°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#511E5B
RGBrgb(81, 30, 91)
HSLhsl(290, 50%, 24%)
HSVhsv(290, 67%, 36%)
CMYKcmyk(11%, 67%, 0%, 64.3%)
CIE-LABlab(21.70, 33.72, -25.99)
CIE-LCHlch(21.70, 42.58, 322.37°)
OKLaboklab(33.95% 0.0887 -0.0725)
OKLCHoklch(33.95% 0.115 320.7)
XYZxyz(5.7457, 3.4335, 10.2556)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E5B #285B1E
analogous
#321E5B #511E5B #5B1E46
triadic
#511E5B #5B511E #1E5B51
tetradic
#511E5B #5B321E #285B1E #1E465B
square
#511E5B #5B321E #285B1E #1E465B
split-complementary
#511E5B #465B1E #1E5B32
monochromatic
#140817 #280F2D #511E5B #7A2D89 #A33CB7

Accessibility & contrast

On white

12.45
#511E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E5B
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E5B#FFFFFF#000000##FFFFFF
##511E5B1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F305D
Deuteranopia (green-blind)
#243659
Tritanopia (blue-blind)
#522839
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511e5b;
/* rgb */ color: rgb(81, 30, 91);
/* oklch */ color: oklch(33.9% 0.115 320.7);
Tailwind
colors: {
  custom: {
    50: '#845e8a',
    500: '#511e5b',
    950: '#000000',
  },
}
SCSS
$custom: #511e5b;
$custom-light: #845e8a;
$custom-dark: #000000;
JSON
{
  "hex": "#511e5b",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 91
  },
  "hsl": {
    "h": 290.164,
    "s": 50.413,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33948,
    "c": 0.11452,
    "h": 320.7
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#511E5B
secondary
#519045
accent
#DA4E65
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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