#511A5F#511A5F

#511A5F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.125 H 318.8°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#511A5F
RGBrgb(81, 26, 95)
HSLhsl(288, 57%, 24%)
HSVhsv(288, 73%, 37%)
CMYKcmyk(14.7%, 72.6%, 0%, 62.7%)
CIE-LABlab(21.26, 36.55, -29.34)
CIE-LCHlch(21.26, 46.87, 321.24°)
OKLaboklab(33.72% 0.0938 -0.0822)
OKLCHoklch(33.72% 0.125 318.8)
XYZxyz(5.8280, 3.3146, 11.1570)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A5F #285F1A
analogous
#2E1A5F #511A5F #5F1A4A
triadic
#511A5F #5F511A #1A5F51
tetradic
#511A5F #5F2E1A #285F1A #1A4A5F
square
#511A5F #5F2E1A #285F1A #1A4A5F
split-complementary
#511A5F #4A5F1A #1A5F2E
monochromatic
#140718 #280D2F #511A5F #7A278F #A334BF

Accessibility & contrast

On white

12.63
#511A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A5F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A5F#FFFFFF#000000##FFFFFF
##511A5F1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#1E355D
Tritanopia (blue-blind)
#51273A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511a5f;
/* rgb */ color: rgb(81, 26, 95);
/* oklch */ color: oklch(33.7% 0.125 318.8);
Tailwind
colors: {
  custom: {
    50: '#845c8d',
    500: '#511a5f',
    950: '#000000',
  },
}
SCSS
$custom: #511a5f;
$custom-light: #845c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511a5f",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 287.826,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33715,
    "c": 0.12476,
    "h": 318.8
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#511A5F
secondary
#519540
accent
#E04867
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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