#511B59#511B59

#511B59 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.4% C 0.117 H 322.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#511B59
RGBrgb(81, 27, 89)
HSLhsl(292, 53%, 23%)
HSVhsv(292, 70%, 35%)
CMYKcmyk(9%, 69.7%, 0%, 65.1%)
CIE-LABlab(21.04, 34.78, -25.72)
CIE-LCHlch(21.04, 43.26, 323.52°)
OKLaboklab(33.42% 0.0927 -0.0716)
OKLCHoklch(33.42% 0.117 322.3)
XYZxyz(5.5883, 3.2548, 9.7831)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B59 #23591B
analogous
#321B59 #511B59 #591B42
triadic
#511B59 #59511B #1B5951
tetradic
#511B59 #59321B #23591B #1B4259
square
#511B59 #59321B #23591B #1B4259
split-complementary
#511B59 #42591B #1B5932
monochromatic
#150717 #260D2A #511B59 #7C2988 #A637B7

Accessibility & contrast

On white

12.72
#511B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B59
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B59#FFFFFF#000000##FFFFFF
##511B591.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5B
Deuteranopia (green-blind)
#233557
Tritanopia (blue-blind)
#522537
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511b59;
/* rgb */ color: rgb(81, 27, 89);
/* oklch */ color: oklch(33.4% 0.117 322.3);
Tailwind
colors: {
  custom: {
    50: '#845c88',
    500: '#511b59',
    950: '#000000',
  },
}
SCSS
$custom: #511b59;
$custom-light: #845c88;
$custom-dark: #000000;
JSON
{
  "hex": "#511b59",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 292.258,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33425,
    "c": 0.11713,
    "h": 322.3
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#511B59
secondary
#4B8F41
accent
#DD4B5E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511B59

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

Preview Lab → · Contrast checker → · Palette generator →

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