#511A5B#511A5B

#511A5B is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.121 H 321.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#511A5B
RGBrgb(81, 26, 91)
HSLhsl(291, 56%, 23%)
HSVhsv(291, 71%, 36%)
CMYKcmyk(11%, 71.4%, 0%, 64.3%)
CIE-LABlab(20.99, 35.69, -27.12)
CIE-LCHlch(20.99, 44.82, 322.77°)
OKLaboklab(33.44% 0.094 -0.0757)
OKLCHoklch(33.44% 0.121 321.1)
XYZxyz(5.6508, 3.2437, 10.2240)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A5B #245B1A
analogous
#301A5B #511A5B #5B1A44
triadic
#511A5B #5B511A #1A5B51
tetradic
#511A5B #5B301A #245B1A #1A445B
square
#511A5B #5B301A #245B1A #1A445B
split-complementary
#511A5B #445B1A #1A5B30
monochromatic
#150718 #270C2B #511A5B #7B288B #A635BA

Accessibility & contrast

On white

12.74
#511A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A5B
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A5B#FFFFFF#000000##FFFFFF
##511A5B1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062F5D
Deuteranopia (green-blind)
#213459
Tritanopia (blue-blind)
#522538
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511a5b;
/* rgb */ color: rgb(81, 26, 91);
/* oklch */ color: oklch(33.4% 0.121 321.1);
Tailwind
colors: {
  custom: {
    50: '#845c8a',
    500: '#511a5b',
    950: '#000000',
  },
}
SCSS
$custom: #511a5b;
$custom-light: #845c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#511a5b",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 290.769,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33437,
    "c": 0.12067,
    "h": 321.1
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#511A5B
secondary
#4C9140
accent
#DF4960
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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