#511F49#511F49

#511F49 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.0% C 0.095 H 334.1°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#511F49
RGBrgb(81, 31, 73)
HSLhsl(310, 45%, 22%)
HSVhsv(310, 62%, 32%)
CMYKcmyk(0%, 61.7%, 9.9%, 68.2%)
CIE-LABlab(20.87, 29.50, -15.21)
CIE-LCHlch(20.87, 33.19, 332.72°)
OKLaboklab(33.01% 0.0852 -0.0414)
OKLCHoklch(33.01% 0.095 334.1)
XYZxyz(5.0859, 3.2107, 6.6539)
Luminance0.0321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F49 #1F5127
analogous
#401F51 #511F49 #511F30
triadic
#511F49 #49511F #1F4951
tetradic
#511F49 #51401F #1F5127 #1F3051
square
#511F49 #51401F #1F5127 #1F3051
split-complementary
#511F49 #30511F #1F5140
monochromatic
#160814 #250E21 #511F49 #7D3071 #AA4199

Accessibility & contrast

On white

12.79
#511F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F49
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F49#FFFFFF#000000##FFFFFF
##511F491.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2E4A
Deuteranopia (green-blind)
#2E3548
Tritanopia (blue-blind)
#552230
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511f49;
/* rgb */ color: rgb(81, 31, 73);
/* oklch */ color: oklch(33.0% 0.095 334.1);
Tailwind
colors: {
  custom: {
    50: '#845e7c',
    500: '#511f49',
    950: '#000000',
  },
}
SCSS
$custom: #511f49;
$custom-light: #845e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#511f49",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 73
  },
  "hsl": {
    "h": 309.6,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33005,
    "c": 0.09469,
    "h": 334.1
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#511F49
secondary
#468650
accent
#D46853
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511F49

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

Preview Lab → · Contrast checker → · Palette generator →

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