#511F5C#511F5C

#511F5C is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.2% C 0.114 H 320.0°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#511F5C
RGBrgb(81, 31, 92)
HSLhsl(289, 50%, 24%)
HSVhsv(289, 66%, 36%)
CMYKcmyk(12%, 66.3%, 0%, 63.9%)
CIE-LABlab(21.95, 33.43, -26.26)
CIE-LCHlch(21.95, 42.51, 321.85°)
OKLaboklab(34.15% 0.0873 -0.0732)
OKLCHoklch(34.15% 0.114 320)
XYZxyz(5.8149, 3.5023, 10.4929)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F5C #2A5C1F
analogous
#331F5C #511F5C #5C1F49
triadic
#511F5C #5C511F #1F5C51
tetradic
#511F5C #5C331F #2A5C1F #1F495C
square
#511F5C #5C331F #2A5C1F #1F495C
split-complementary
#511F5C #495C1F #1F5C33
monochromatic
#140817 #29102E #511F5C #792E8A #A23EB8

Accessibility & contrast

On white

12.35
#511F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F5C
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F5C#FFFFFF#000000##FFFFFF
##511F5C1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10315E
Deuteranopia (green-blind)
#24365A
Tritanopia (blue-blind)
#51293A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511f5c;
/* rgb */ color: rgb(81, 31, 92);
/* oklch */ color: oklch(34.2% 0.114 320.0);
Tailwind
colors: {
  custom: {
    50: '#845e8a',
    500: '#511f5c',
    950: '#000000',
  },
}
SCSS
$custom: #511f5c;
$custom-light: #845e8a;
$custom-dark: #000000;
JSON
{
  "hex": "#511f5c",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 289.18,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3415,
    "c": 0.11398,
    "h": 320
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#511F5C
secondary
#549146
accent
#D94F68
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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