#511F60#511F60

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

Color values

HEX#511F60
RGBrgb(81, 31, 96)
HSLhsl(286, 51%, 25%)
HSVhsv(286, 68%, 38%)
CMYKcmyk(15.6%, 67.7%, 0%, 62.4%)
CIE-LABlab(22.21, 34.32, -28.49)
CIE-LCHlch(22.21, 44.61, 320.31°)
OKLaboklab(34.42% 0.0874 -0.0797)
OKLCHoklch(34.42% 0.118 317.6)
XYZxyz(5.9943, 3.5741, 11.4382)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F60 #2E601F
analogous
#311F60 #511F60 #601F4E
triadic
#511F60 #60511F #1F6051
tetradic
#511F60 #60311F #2E601F #1F4E60
square
#511F60 #60311F #2E601F #1F4E60
split-complementary
#511F60 #4E601F #1F6031
monochromatic
#140717 #2A1032 #511F60 #782E8E #9F3DBD

Accessibility & contrast

On white

12.25
#511F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F60
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F60#FFFFFF#000000##FFFFFF
##511F601.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3262
Deuteranopia (green-blind)
#21375E
Tritanopia (blue-blind)
#512A3C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511f60;
/* rgb */ color: rgb(81, 31, 96);
/* oklch */ color: oklch(34.4% 0.118 317.6);
Tailwind
colors: {
  custom: {
    50: '#845e8d',
    500: '#511f60',
    950: '#000000',
  },
}
SCSS
$custom: #511f60;
$custom-light: #845e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511f60",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 96
  },
  "hsl": {
    "h": 286.154,
    "s": 51.181,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34419,
    "c": 0.11829,
    "h": 317.6
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#511F60
secondary
#589546
accent
#DB4D6E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511F60

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

Preview Lab → · Contrast checker → · Palette generator →

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