#511A5D#511A5D

#511A5D is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.123 H 319.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#511A5D
RGBrgb(81, 26, 93)
HSLhsl(289, 56%, 23%)
HSVhsv(289, 72%, 36%)
CMYKcmyk(12.9%, 72%, 0%, 63.5%)
CIE-LABlab(21.13, 36.12, -28.24)
CIE-LCHlch(21.13, 45.85, 321.98°)
OKLaboklab(33.58% 0.0939 -0.079)
OKLCHoklch(33.58% 0.123 319.9)
XYZxyz(5.7383, 3.2787, 10.6844)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A5D #265D1A
analogous
#2F1A5D #511A5D #5D1A47
triadic
#511A5D #5D511A #1A5D51
tetradic
#511A5D #5D2F1A #265D1A #1A475D
square
#511A5D #5D2F1A #265D1A #1A475D
split-complementary
#511A5D #475D1A #1A5D2F
monochromatic
#150718 #270D2D #511A5D #7B278D #A435BD

Accessibility & contrast

On white

12.68
#511A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A5D
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A5D#FFFFFF#000000##FFFFFF
##511A5D1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032F5F
Deuteranopia (green-blind)
#20355B
Tritanopia (blue-blind)
#512639
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511a5d;
/* rgb */ color: rgb(81, 26, 93);
/* oklch */ color: oklch(33.6% 0.123 319.9);
Tailwind
colors: {
  custom: {
    50: '#845c8b',
    500: '#511a5d',
    950: '#000000',
  },
}
SCSS
$custom: #511a5d;
$custom-light: #845c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#511a5d",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 289.254,
    "s": 56.303,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33575,
    "c": 0.12271,
    "h": 319.9
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#511A5D
secondary
#4F9340
accent
#E04863
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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