#511C60#511C60

#511C60 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.123 H 318.0°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#511C60
RGBrgb(81, 28, 96)
HSLhsl(287, 55%, 24%)
HSVhsv(287, 71%, 38%)
CMYKcmyk(15.6%, 70.8%, 0%, 62.4%)
CIE-LABlab(21.67, 35.82, -29.35)
CIE-LCHlch(21.67, 46.31, 320.67°)
OKLaboklab(34.03% 0.0913 -0.0822)
OKLCHoklch(34.03% 0.123 318)
XYZxyz(5.9196, 3.4246, 11.4133)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C60 #2B601C
analogous
#2F1C60 #511C60 #601C4D
triadic
#511C60 #60511C #1C6051
tetradic
#511C60 #602F1C #2B601C #1C4D60
square
#511C60 #602F1C #2B601C #1C4D60
split-complementary
#511C60 #4D601C #1C602F
monochromatic
#140718 #290E31 #511C60 #792A8F #A138BF

Accessibility & contrast

On white

12.46
#511C60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C60
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C60#FFFFFF#000000##FFFFFF
##511C601.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511c60;
/* rgb */ color: rgb(81, 28, 96);
/* oklch */ color: oklch(34.0% 0.123 318.0);
Tailwind
colors: {
  custom: {
    50: '#845d8d',
    500: '#511c60',
    950: '#000000',
  },
}
SCSS
$custom: #511c60;
$custom-light: #845d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511c60",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 96
  },
  "hsl": {
    "h": 286.765,
    "s": 54.839,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3403,
    "c": 0.12288,
    "h": 318
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#511C60
secondary
#559542
accent
#DE4A6A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511C60

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

Preview Lab → · Contrast checker → · Palette generator →

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