#511B57#511B57

#511B57 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.3% C 0.115 H 323.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#511B57
RGBrgb(81, 27, 87)
HSLhsl(294, 53%, 22%)
HSVhsv(294, 69%, 34%)
CMYKcmyk(6.9%, 69%, 0%, 65.9%)
CIE-LABlab(20.91, 34.36, -24.59)
CIE-LCHlch(20.91, 42.25, 324.41°)
OKLaboklab(33.29% 0.0926 -0.0683)
OKLCHoklch(33.29% 0.115 323.6)
XYZxyz(5.5054, 3.2216, 9.3468)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B57 #21571B
analogous
#331B57 #511B57 #571B3F
triadic
#511B57 #57511B #1B5751
tetradic
#511B57 #57331B #21571B #1B3F57
square
#511B57 #57331B #21571B #1B3F57
split-complementary
#511B57 #3F571B #1B5733
monochromatic
#160717 #260D28 #511B57 #7C2986 #A838B4

Accessibility & contrast

On white

12.77
#511B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B57
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B57#FFFFFF#000000##FFFFFF
##511B571.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2E59
Deuteranopia (green-blind)
#243455
Tritanopia (blue-blind)
#522436
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511b57;
/* rgb */ color: rgb(81, 27, 87);
/* oklch */ color: oklch(33.3% 0.115 323.6);
Tailwind
colors: {
  custom: {
    50: '#845c87',
    500: '#511b57',
    950: '#000000',
  },
}
SCSS
$custom: #511b57;
$custom-light: #845c87;
$custom-dark: #000000;
JSON
{
  "hex": "#511b57",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 294,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33293,
    "c": 0.11511,
    "h": 323.6
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#511B57
secondary
#498D41
accent
#DC4C5A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511B57

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

Preview Lab → · Contrast checker → · Palette generator →

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