#511F5B#511F5B

#511F5B is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.1% C 0.113 H 320.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#511F5B
RGBrgb(81, 31, 91)
HSLhsl(290, 49%, 24%)
HSVhsv(290, 66%, 36%)
CMYKcmyk(11%, 65.9%, 0%, 64.3%)
CIE-LABlab(21.89, 33.21, -25.70)
CIE-LCHlch(21.89, 41.99, 322.27°)
OKLaboklab(34.08% 0.0873 -0.0716)
OKLCHoklch(34.08% 0.113 320.6)
XYZxyz(5.7714, 3.4849, 10.2641)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F5B #295B1F
analogous
#331F5B #511F5B #5B1F47
triadic
#511F5B #5B511F #1F5B51
tetradic
#511F5B #5B331F #295B1F #1F475B
square
#511F5B #5B331F #295B1F #1F475B
split-complementary
#511F5B #475B1F #1F5B33
monochromatic
#140817 #280F2D #511F5B #7A2F89 #A23EB6

Accessibility & contrast

On white

12.37
#511F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F5B
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F5B#FFFFFF#000000##FFFFFF
##511F5B1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11315D
Deuteranopia (green-blind)
#253659
Tritanopia (blue-blind)
#52293A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511f5b;
/* rgb */ color: rgb(81, 31, 91);
/* oklch */ color: oklch(34.1% 0.113 320.6);
Tailwind
colors: {
  custom: {
    50: '#845e8a',
    500: '#511f5b',
    950: '#000000',
  },
}
SCSS
$custom: #511f5b;
$custom-light: #845e8a;
$custom-dark: #000000;
JSON
{
  "hex": "#511f5b",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 290,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34084,
    "c": 0.1129,
    "h": 320.6
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#511F5B
secondary
#529046
accent
#D94F66
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #511F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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