#511D60#511D60

#511D60 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.2% C 0.121 H 317.9°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#511D60
RGBrgb(81, 29, 96)
HSLhsl(287, 54%, 25%)
HSVhsv(287, 70%, 38%)
CMYKcmyk(15.6%, 69.8%, 0%, 62.4%)
CIE-LABlab(21.85, 35.33, -29.07)
CIE-LCHlch(21.85, 45.76, 320.55°)
OKLaboklab(34.16% 0.09 -0.0814)
OKLCHoklch(34.16% 0.121 317.9)
XYZxyz(5.9437, 3.4728, 11.4213)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D60 #2C601D
analogous
#301D60 #511D60 #601D4E
triadic
#511D60 #60511D #1D6051
tetradic
#511D60 #60301D #2C601D #1D4E60
square
#511D60 #60301D #2C601D #1D4E60
split-complementary
#511D60 #4E601D #1D6030
monochromatic
#140718 #290F31 #511D60 #792B8F #A039BE

Accessibility & contrast

On white

12.39
#511D60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D60
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D60#FFFFFF#000000##FFFFFF
##511D601.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511d60;
/* rgb */ color: rgb(81, 29, 96);
/* oklch */ color: oklch(34.2% 0.121 317.9);
Tailwind
colors: {
  custom: {
    50: '#845d8d',
    500: '#511d60',
    950: '#000000',
  },
}
SCSS
$custom: #511d60;
$custom-light: #845d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511d60",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 96
  },
  "hsl": {
    "h": 286.567,
    "s": 53.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34156,
    "c": 0.12138,
    "h": 317.9
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#511D60
secondary
#569544
accent
#DD4B6C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511D60

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

Preview Lab → · Contrast checker → · Palette generator →

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