#511A50#511A50

#511A50 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.7% C 0.110 H 328.5°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#511A50
RGBrgb(81, 26, 80)
HSLhsl(301, 51%, 21%)
HSVhsv(301, 68%, 32%)
CMYKcmyk(0%, 67.9%, 1.2%, 68.2%)
CIE-LABlab(20.31, 33.42, -20.83)
CIE-LCHlch(20.31, 39.38, 328.07°)
OKLaboklab(32.72% 0.0936 -0.0574)
OKLCHoklch(32.72% 0.11 328.5)
XYZxyz(5.2106, 3.0677, 7.9055)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A50 #1A511B
analogous
#361A51 #511A50 #511A34
triadic
#511A50 #50511A #1A5051
tetradic
#511A50 #51361A #1A511B #1A3451
square
#511A50 #51361A #1A511B #1A3451
split-complementary
#511A50 #34511A #1A5136
monochromatic
#170717 #230B22 #511A50 #7F297E #AE38AC

Accessibility & contrast

On white

13.02
#511A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#511A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A50
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A50#FFFFFF#000000##FFFFFF
##511A501.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511a50;
/* rgb */ color: rgb(81, 26, 80);
/* oklch */ color: oklch(32.7% 0.110 328.5);
Tailwind
colors: {
  custom: {
    50: '#845b81',
    500: '#511a50',
    950: '#000000',
  },
}
SCSS
$custom: #511a50;
$custom-light: #845b81;
$custom-dark: #000000;
JSON
{
  "hex": "#511a50",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 301.091,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32723,
    "c": 0.10979,
    "h": 328.5
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#511A50
secondary
#408741
accent
#DB504D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511A50

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

Preview Lab → · Contrast checker → · Palette generator →

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