#511F4A#511F4A

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

Color values

HEX#511F4A
RGBrgb(81, 31, 74)
HSLhsl(308, 45%, 22%)
HSVhsv(308, 62%, 32%)
CMYKcmyk(0%, 61.7%, 8.6%, 68.2%)
CIE-LABlab(20.92, 29.69, -15.81)
CIE-LCHlch(20.92, 33.64, 331.96°)
OKLaboklab(33.06% 0.0854 -0.0431)
OKLCHoklch(33.06% 0.096 333.2)
XYZxyz(5.1194, 3.2241, 6.8299)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F4A #1F5126
analogous
#3F1F51 #511F4A #511F31
triadic
#511F4A #4A511F #1F4A51
tetradic
#511F4A #513F1F #1F5126 #1F3151
square
#511F4A #513F1F #1F5126 #1F3151
split-complementary
#511F4A #31511F #1F513F
monochromatic
#160814 #250E22 #511F4A #7D3072 #AA419B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511F4A#FFFFFF#000000##FFFFFF
##511F4A1.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)
#1E2E4B
Deuteranopia (green-blind)
#2D3549
Tritanopia (blue-blind)
#552331
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511f4a;
/* rgb */ color: rgb(81, 31, 74);
/* oklch */ color: oklch(33.1% 0.096 333.2);
Tailwind
colors: {
  custom: {
    50: '#845e7c',
    500: '#511f4a',
    950: '#000000',
  },
}
SCSS
$custom: #511f4a;
$custom-light: #845e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#511f4a",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 308.4,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3306,
    "c": 0.09563,
    "h": 333.2
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#511F4A
secondary
#46864F
accent
#D46553
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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