#511F59#511F59

#511F59 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.0% C 0.111 H 321.9°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#511F59
RGBrgb(81, 31, 89)
HSLhsl(292, 48%, 24%)
HSVhsv(292, 65%, 35%)
CMYKcmyk(9%, 65.2%, 0%, 65.1%)
CIE-LABlab(21.77, 32.77, -24.56)
CIE-LCHlch(21.77, 40.95, 323.14°)
OKLaboklab(33.95% 0.0872 -0.0683)
OKLCHoklch(33.95% 0.111 321.9)
XYZxyz(5.6863, 3.4509, 9.8158)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F59 #27591F
analogous
#341F59 #511F59 #591F44
triadic
#511F59 #59511F #1F5951
tetradic
#511F59 #59341F #27591F #1F4459
square
#511F59 #59341F #27591F #1F4459
split-complementary
#511F59 #44591F #1F5934
monochromatic
#150817 #280F2C #511F59 #7A2F86 #A43FB4

Accessibility & contrast

On white

12.42
#511F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F59
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F59#FFFFFF#000000##FFFFFF
##511F591.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13305B
Deuteranopia (green-blind)
#263657
Tritanopia (blue-blind)
#522838
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511f59;
/* rgb */ color: rgb(81, 31, 89);
/* oklch */ color: oklch(34.0% 0.111 321.9);
Tailwind
colors: {
  custom: {
    50: '#845e88',
    500: '#511f59',
    950: '#000000',
  },
}
SCSS
$custom: #511f59;
$custom-light: #845e88;
$custom-dark: #000000;
JSON
{
  "hex": "#511f59",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 89
  },
  "hsl": {
    "h": 291.724,
    "s": 48.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33954,
    "c": 0.11077,
    "h": 321.9
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#511F59
secondary
#508E46
accent
#D85063
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511F59

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

Preview Lab → · Contrast checker → · Palette generator →

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