#511B50#511B50

#511B50 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.9% C 0.108 H 328.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#511B50
RGBrgb(81, 27, 80)
HSLhsl(301, 50%, 21%)
HSVhsv(301, 67%, 32%)
CMYKcmyk(0%, 66.7%, 1.2%, 68.2%)
CIE-LABlab(20.49, 32.93, -20.55)
CIE-LCHlch(20.49, 38.82, 328.04°)
OKLaboklab(32.85% 0.0922 -0.0566)
OKLCHoklch(32.85% 0.108 328.4)
XYZxyz(5.2332, 3.1127, 7.9130)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B50 #1B511C
analogous
#371B51 #511B50 #511B35
triadic
#511B50 #50511B #1B5051
tetradic
#511B50 #51371B #1B511C #1B3551
square
#511B50 #51371B #1B511C #1B3551
split-complementary
#511B50 #35511B #1B5137
monochromatic
#170817 #230C23 #511B50 #7F2A7D #AD3AAB

Accessibility & contrast

On white

12.94
#511B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511B50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B50
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B50#FFFFFF#000000##FFFFFF
##511B501.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152D52
Deuteranopia (green-blind)
#28344F
Tritanopia (blue-blind)
#542132
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511b50;
/* rgb */ color: rgb(81, 27, 80);
/* oklch */ color: oklch(32.9% 0.108 328.4);
Tailwind
colors: {
  custom: {
    50: '#845c81',
    500: '#511b50',
    950: '#000000',
  },
}
SCSS
$custom: #511b50;
$custom-light: #845c81;
$custom-dark: #000000;
JSON
{
  "hex": "#511b50",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 80
  },
  "hsl": {
    "h": 301.111,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32852,
    "c": 0.10819,
    "h": 328.4
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#511B50
secondary
#418742
accent
#DA514E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511B50

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

Preview Lab → · Contrast checker → · Palette generator →

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