#511A4F#511A4F

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

Color values

HEX#511A4F
RGBrgb(81, 26, 79)
HSLhsl(302, 51%, 21%)
HSVhsv(302, 68%, 32%)
CMYKcmyk(0%, 67.9%, 2.5%, 68.2%)
CIE-LABlab(20.25, 33.22, -20.24)
CIE-LCHlch(20.25, 38.91, 328.65°)
OKLaboklab(32.66% 0.0935 -0.0557)
OKLCHoklch(32.66% 0.109 329.2)
XYZxyz(5.1740, 3.0530, 7.7124)
Luminance0.0305 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A4F #1A511C
analogous
#371A51 #511A4F #511A33
triadic
#511A4F #4F511A #1A4F51
tetradic
#511A4F #51371A #1A511C #1A3351
square
#511A4F #51371A #1A511C #1A3351
split-complementary
#511A4F #33511A #1A5137
monochromatic
#170717 #230B22 #511A4F #7F297C #AE38A9

Accessibility & contrast

On white

13.04
#511A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A4F
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A4F#FFFFFF#000000##FFFFFF
##511A4F1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152C51
Deuteranopia (green-blind)
#28334E
Tritanopia (blue-blind)
#542031
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511a4f;
/* rgb */ color: rgb(81, 26, 79);
/* oklch */ color: oklch(32.7% 0.109 329.2);
Tailwind
colors: {
  custom: {
    50: '#845b80',
    500: '#511a4f',
    950: '#000000',
  },
}
SCSS
$custom: #511a4f;
$custom-light: #845b80;
$custom-dark: #000000;
JSON
{
  "hex": "#511a4f",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 302.182,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32662,
    "c": 0.10884,
    "h": 329.2
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#511A4F
secondary
#408742
accent
#DB524D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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