#511A60#511A60

#511A60 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.126 H 318.2°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#511A60
RGBrgb(81, 26, 96)
HSLhsl(287, 57%, 24%)
HSVhsv(287, 73%, 38%)
CMYKcmyk(15.6%, 72.9%, 0%, 62.4%)
CIE-LABlab(21.33, 36.77, -29.90)
CIE-LCHlch(21.33, 47.39, 320.89°)
OKLaboklab(33.79% 0.0938 -0.0838)
OKLCHoklch(33.79% 0.126 318.2)
XYZxyz(5.8738, 3.3329, 11.3980)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A60 #29601A
analogous
#2E1A60 #511A60 #601A4C
triadic
#511A60 #60511A #1A6051
tetradic
#511A60 #602E1A #29601A #1A4C60
square
#511A60 #602E1A #29601A #1A4C60
split-complementary
#511A60 #4C601A #1A602E
monochromatic
#140718 #280D30 #511A60 #7A2790 #A234C0

Accessibility & contrast

On white

12.60
#511A60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511A60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A60
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A60#FFFFFF#000000##FFFFFF
##511A601.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003062
Deuteranopia (green-blind)
#1D355E
Tritanopia (blue-blind)
#51273B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511a60;
/* rgb */ color: rgb(81, 26, 96);
/* oklch */ color: oklch(33.8% 0.126 318.2);
Tailwind
colors: {
  custom: {
    50: '#845c8d',
    500: '#511a60',
    950: '#000000',
  },
}
SCSS
$custom: #511a60;
$custom-light: #845c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511a60",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 96
  },
  "hsl": {
    "h": 287.143,
    "s": 57.377,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33786,
    "c": 0.12578,
    "h": 318.2
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#511A60
secondary
#529640
accent
#E14768
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511A60

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

Preview Lab → · Contrast checker → · Palette generator →

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