#511B60#511B60

#511B60 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 33.9% C 0.124 H 318.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#511B60
RGBrgb(81, 27, 96)
HSLhsl(287, 56%, 24%)
HSVhsv(287, 72%, 38%)
CMYKcmyk(15.6%, 71.9%, 0%, 62.4%)
CIE-LABlab(21.50, 36.30, -29.63)
CIE-LCHlch(21.50, 46.86, 320.78°)
OKLaboklab(33.91% 0.0925 -0.083)
OKLCHoklch(33.91% 0.124 318.1)
XYZxyz(5.8963, 3.3780, 11.4055)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B60 #2A601B
analogous
#2F1B60 #511B60 #601B4D
triadic
#511B60 #60511B #1B6051
tetradic
#511B60 #602F1B #2A601B #1B4D60
square
#511B60 #602F1B #2A601B #1B4D60
split-complementary
#511B60 #4D601B #1B602F
monochromatic
#140718 #290E30 #511B60 #792890 #A236C0

Accessibility & contrast

On white

12.53
#511B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B60
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B60#FFFFFF#000000##FFFFFF
##511B601.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003062
Deuteranopia (green-blind)
#1E355E
Tritanopia (blue-blind)
#51283B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511b60;
/* rgb */ color: rgb(81, 27, 96);
/* oklch */ color: oklch(33.9% 0.124 318.1);
Tailwind
colors: {
  custom: {
    50: '#845c8d',
    500: '#511b60',
    950: '#000000',
  },
}
SCSS
$custom: #511b60;
$custom-light: #845c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511b60",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 286.957,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33906,
    "c": 0.12434,
    "h": 318.1
  },
  "luminance": 0.03378
}

Semantic roles & 50–950 ramp

primary
#511B60
secondary
#549641
accent
#DF4869
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511B60

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

Preview Lab → · Contrast checker → · Palette generator →

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