#511551#511551

#511551 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.2% C 0.118 H 327.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#511551
RGBrgb(81, 21, 81)
HSLhsl(300, 59%, 20%)
HSVhsv(300, 74%, 32%)
CMYKcmyk(0%, 74.1%, 0%, 68.2%)
CIE-LABlab(19.56, 35.90, -22.70)
CIE-LCHlch(19.56, 42.47, 327.69°)
OKLaboklab(32.2% 0.1001 -0.0628)
OKLCHoklch(32.2% 0.118 327.9)
XYZxyz(5.1466, 2.8801, 8.0678)
Luminance0.0288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511551 #155115
analogous
#331551 #511551 #511533
triadic
#511551 #515115 #155151
tetradic
#511551 #513315 #155115 #153351
square
#511551 #513315 #155115 #153351
split-complementary
#511551 #335115 #155133
monochromatic
#180618 #200820 #511551 #822282 #B22EB2

Accessibility & contrast

On white

13.32
#511551 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511551 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511551
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511551#FFFFFF#000000##FFFFFF
##5115511.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2A53
Deuteranopia (green-blind)
#24324F
Tritanopia (blue-blind)
#541E31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511551;
/* rgb */ color: rgb(81, 21, 81);
/* oklch */ color: oklch(32.2% 0.118 327.9);
Tailwind
colors: {
  custom: {
    50: '#845982',
    500: '#511551',
    950: '#000000',
  },
}
SCSS
$custom: #511551;
$custom-light: #845982;
$custom-dark: #000000;
JSON
{
  "hex": "#511551",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.32196,
    "c": 0.11816,
    "h": 327.9
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#511551
secondary
#398939
accent
#E24646
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511551

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

Preview Lab → · Contrast checker → · Palette generator →

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