#511D58#511D58

#511D58 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.6% C 0.113 H 322.8°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#511D58
RGBrgb(81, 29, 88)
HSLhsl(293, 50%, 23%)
HSVhsv(293, 67%, 35%)
CMYKcmyk(8%, 67%, 0%, 65.5%)
CIE-LABlab(21.33, 33.58, -24.59)
CIE-LCHlch(21.33, 41.62, 323.79°)
OKLaboklab(33.62% 0.09 -0.0684)
OKLCHoklch(33.62% 0.113 322.8)
XYZxyz(5.5940, 3.3329, 9.5793)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D58 #24581D
analogous
#331D58 #511D58 #581D41
triadic
#511D58 #58511D #1D5851
tetradic
#511D58 #58331D #24581D #1D4158
square
#511D58 #58331D #24581D #1D4158
split-complementary
#511D58 #41581D #1D5833
monochromatic
#150817 #270E2A #511D58 #7B2C86 #A63BB4

Accessibility & contrast

On white

12.60
#511D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D58
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D58#FFFFFF#000000##FFFFFF
##511D581.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112F5A
Deuteranopia (green-blind)
#253556
Tritanopia (blue-blind)
#522637
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511d58;
/* rgb */ color: rgb(81, 29, 88);
/* oklch */ color: oklch(33.6% 0.113 322.8);
Tailwind
colors: {
  custom: {
    50: '#845d87',
    500: '#511d58',
    950: '#000000',
  },
}
SCSS
$custom: #511d58;
$custom-light: #845d87;
$custom-dark: #000000;
JSON
{
  "hex": "#511d58",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 88
  },
  "hsl": {
    "h": 292.881,
    "s": 50.427,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33618,
    "c": 0.11298,
    "h": 322.8
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#511D58
secondary
#4C8D44
accent
#DA4E5E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511D58

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

Preview Lab → · Contrast checker → · Palette generator →

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