#511555#511555

#511555 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.122 H 325.2°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#511555
RGBrgb(81, 21, 85)
HSLhsl(296, 60%, 21%)
HSVhsv(296, 75%, 33%)
CMYKcmyk(4.7%, 75.3%, 0%, 66.7%)
CIE-LABlab(19.81, 36.68, -25.00)
CIE-LCHlch(19.81, 44.39, 325.73°)
OKLaboklab(32.46% 0.1001 -0.0695)
OKLCHoklch(32.46% 0.122 325.2)
XYZxyz(5.3011, 2.9419, 8.8812)
Luminance0.0294 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511555 #195515
analogous
#311555 #511555 #551539
triadic
#511555 #555115 #155551
tetradic
#511555 #553115 #195515 #153955
square
#511555 #553115 #195515 #153955
split-complementary
#511555 #395515 #155531
monochromatic
#170619 #220924 #511555 #802186 #AF2DB7

Accessibility & contrast

On white

13.22
#511555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#511555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511555
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511555#FFFFFF#000000##FFFFFF
##5115551.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062B57
Deuteranopia (green-blind)
#223253
Tritanopia (blue-blind)
#531F33
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511555;
/* rgb */ color: rgb(81, 21, 85);
/* oklch */ color: oklch(32.5% 0.122 325.2);
Tailwind
colors: {
  custom: {
    50: '#845985',
    500: '#511555',
    950: '#000000',
  },
}
SCSS
$custom: #511555;
$custom-light: #845985;
$custom-dark: #000000;
JSON
{
  "hex": "#511555",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 85
  },
  "hsl": {
    "h": 296.25,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32459,
    "c": 0.12188,
    "h": 325.2
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#511555
secondary
#3E8D39
accent
#E4444E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511555

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

Preview Lab → · Contrast checker → · Palette generator →

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