#511F4F#511F4F

#511F4F is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.3% C 0.100 H 329.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#511F4F
RGBrgb(81, 31, 79)
HSLhsl(302, 45%, 22%)
HSVhsv(302, 62%, 32%)
CMYKcmyk(0%, 61.7%, 2.5%, 68.2%)
CIE-LABlab(21.19, 30.67, -18.78)
CIE-LCHlch(21.19, 35.97, 328.52°)
OKLaboklab(33.34% 0.0862 -0.0516)
OKLCHoklch(33.34% 0.1 329.1)
XYZxyz(5.2946, 3.2942, 7.7526)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F4F #1F5121
analogous
#3A1F51 #511F4F #511F36
triadic
#511F4F #4F511F #1F4F51
tetradic
#511F4F #513A1F #1F5121 #1F3651
square
#511F4F #513A1F #1F5121 #1F3651
split-complementary
#511F4F #36511F #1F513A
monochromatic
#160816 #250E24 #511F4F #7D307A #AA41A5

Accessibility & contrast

On white

12.66
#511F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F4F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F4F#FFFFFF#000000##FFFFFF
##511F4F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2F51
Deuteranopia (green-blind)
#2B354E
Tritanopia (blue-blind)
#542433
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511f4f;
/* rgb */ color: rgb(81, 31, 79);
/* oklch */ color: oklch(33.3% 0.100 329.1);
Tailwind
colors: {
  custom: {
    50: '#845e80',
    500: '#511f4f',
    950: '#000000',
  },
}
SCSS
$custom: #511f4f;
$custom-light: #845e80;
$custom-dark: #000000;
JSON
{
  "hex": "#511f4f",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 302.4,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33341,
    "c": 0.10047,
    "h": 329.1
  },
  "luminance": 0.03294
}

Semantic roles & 50–950 ramp

primary
#511F4F
secondary
#468649
accent
#D45953
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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