#511D5F#511D5F

#511D5F is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.1% C 0.120 H 318.4°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#511D5F
RGBrgb(81, 29, 95)
HSLhsl(287, 53%, 24%)
HSVhsv(287, 69%, 37%)
CMYKcmyk(14.7%, 69.5%, 0%, 62.7%)
CIE-LABlab(21.78, 35.11, -28.52)
CIE-LCHlch(21.78, 45.23, 320.91°)
OKLaboklab(34.09% 0.09 -0.0798)
OKLCHoklch(34.09% 0.12 318.4)
XYZxyz(5.8980, 3.4545, 11.1804)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D5F #2B5F1D
analogous
#301D5F #511D5F #5F1D4C
triadic
#511D5F #5F511D #1D5F51
tetradic
#511D5F #5F301D #2B5F1D #1D4C5F
square
#511D5F #5F301D #2B5F1D #1D4C5F
split-complementary
#511D5F #4C5F1D #1D5F30
monochromatic
#140717 #290F30 #511D5F #792B8E #A13ABD

Accessibility & contrast

On white

12.42
#511D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D5F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D5F#FFFFFF#000000##FFFFFF
##511D5F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073161
Deuteranopia (green-blind)
#20365D
Tritanopia (blue-blind)
#51293B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511d5f;
/* rgb */ color: rgb(81, 29, 95);
/* oklch */ color: oklch(34.1% 0.120 318.4);
Tailwind
colors: {
  custom: {
    50: '#845d8d',
    500: '#511d5f',
    950: '#000000',
  },
}
SCSS
$custom: #511d5f;
$custom-light: #845d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511d5f",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 95
  },
  "hsl": {
    "h": 287.273,
    "s": 53.226,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34087,
    "c": 0.12031,
    "h": 318.4
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#511D5F
secondary
#559444
accent
#DD4B6A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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