#511550#511550

#511550 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.117 H 328.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#511550
RGBrgb(81, 21, 80)
HSLhsl(301, 59%, 20%)
HSVhsv(301, 74%, 32%)
CMYKcmyk(0%, 74.1%, 1.2%, 68.2%)
CIE-LABlab(19.50, 35.70, -22.12)
CIE-LCHlch(19.50, 42.00, 328.22°)
OKLaboklab(32.13% 0.1001 -0.0611)
OKLCHoklch(32.13% 0.117 328.6)
XYZxyz(5.1094, 2.8652, 7.8718)
Luminance0.0286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511550 #155116
analogous
#341551 #511550 #511532
triadic
#511550 #505115 #155051
tetradic
#511550 #513415 #155116 #153251
square
#511550 #513415 #155116 #153251
split-complementary
#511550 #325115 #155134
monochromatic
#180618 #200820 #511550 #822280 #B22EB0

Accessibility & contrast

On white

13.35
#511550 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#511550 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511550
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511550#FFFFFF#000000##FFFFFF
##5115501.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2A52
Deuteranopia (green-blind)
#25324E
Tritanopia (blue-blind)
#541D30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511550;
/* rgb */ color: rgb(81, 21, 80);
/* oklch */ color: oklch(32.1% 0.117 328.6);
Tailwind
colors: {
  custom: {
    50: '#845981',
    500: '#511550',
    950: '#000000',
  },
}
SCSS
$custom: #511550;
$custom-light: #845981;
$custom-dark: #000000;
JSON
{
  "hex": "#511550",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 80
  },
  "hsl": {
    "h": 301,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.32132,
    "c": 0.11724,
    "h": 328.6
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#511550
secondary
#39893A
accent
#E24846
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511550

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

Preview Lab → · Contrast checker → · Palette generator →

#511550 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva