#511F5F#511F5F

#511F5F is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.4% C 0.117 H 318.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#511F5F
RGBrgb(81, 31, 95)
HSLhsl(287, 51%, 25%)
HSVhsv(287, 67%, 37%)
CMYKcmyk(14.7%, 67.4%, 0%, 62.7%)
CIE-LABlab(22.14, 34.10, -27.93)
CIE-LCHlch(22.14, 44.08, 320.67°)
OKLaboklab(34.35% 0.0874 -0.0781)
OKLCHoklch(34.35% 0.117 318.2)
XYZxyz(5.9486, 3.5558, 11.1972)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F5F #2D5F1F
analogous
#311F5F #511F5F #5F1F4D
triadic
#511F5F #5F511F #1F5F51
tetradic
#511F5F #5F311F #2D5F1F #1F4D5F
square
#511F5F #5F311F #2D5F1F #1F4D5F
split-complementary
#511F5F #4D5F1F #1F5F31
monochromatic
#140817 #2A1031 #511F5F #782E8D #A03DBB

Accessibility & contrast

On white

12.27
#511F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F5F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F5F#FFFFFF#000000##FFFFFF
##511F5F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3261
Deuteranopia (green-blind)
#22375D
Tritanopia (blue-blind)
#512A3C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511f5f;
/* rgb */ color: rgb(81, 31, 95);
/* oklch */ color: oklch(34.4% 0.117 318.2);
Tailwind
colors: {
  custom: {
    50: '#845e8d',
    500: '#511f5f',
    950: '#000000',
  },
}
SCSS
$custom: #511f5f;
$custom-light: #845e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511f5f",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 286.875,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34351,
    "c": 0.11721,
    "h": 318.2
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#511F5F
secondary
#579446
accent
#DA4E6C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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