#511D59#511D59

#511D59 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.7% C 0.114 H 322.1°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#511D59
RGBrgb(81, 29, 89)
HSLhsl(292, 51%, 23%)
HSVhsv(292, 67%, 35%)
CMYKcmyk(9%, 67.4%, 0%, 65.1%)
CIE-LABlab(21.39, 33.80, -25.16)
CIE-LCHlch(21.39, 42.13, 323.34°)
OKLaboklab(33.68% 0.09 -0.07)
OKLCHoklch(33.68% 0.114 322.1)
XYZxyz(5.6357, 3.3496, 9.7989)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D59 #25591D
analogous
#331D59 #511D59 #591D43
triadic
#511D59 #59511D #1D5951
tetradic
#511D59 #59331D #25591D #1D4359
square
#511D59 #59331D #25591D #1D4359
split-complementary
#511D59 #43591D #1D5933
monochromatic
#150817 #270E2B #511D59 #7B2C87 #A53BB5

Accessibility & contrast

On white

12.58
#511D59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D59
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D59#FFFFFF#000000##FFFFFF
##511D591.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10305B
Deuteranopia (green-blind)
#243557
Tritanopia (blue-blind)
#522638
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511d59;
/* rgb */ color: rgb(81, 29, 89);
/* oklch */ color: oklch(33.7% 0.114 322.1);
Tailwind
colors: {
  custom: {
    50: '#845d88',
    500: '#511d59',
    950: '#000000',
  },
}
SCSS
$custom: #511d59;
$custom-light: #845d88;
$custom-dark: #000000;
JSON
{
  "hex": "#511d59",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 89
  },
  "hsl": {
    "h": 292,
    "s": 50.847,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33683,
    "c": 0.11402,
    "h": 322.1
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#511D59
secondary
#4E8E44
accent
#DA4D60
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511D59

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

Preview Lab → · Contrast checker → · Palette generator →

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