#511A59#511A59

#511A59 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.3% C 0.119 H 322.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#511A59
RGBrgb(81, 26, 89)
HSLhsl(292, 55%, 23%)
HSVhsv(292, 71%, 35%)
CMYKcmyk(9%, 70.8%, 0%, 65.1%)
CIE-LABlab(20.86, 35.26, -26.00)
CIE-LCHlch(20.86, 43.81, 323.60°)
OKLaboklab(33.3% 0.094 -0.0724)
OKLCHoklch(33.3% 0.119 322.4)
XYZxyz(5.5657, 3.2097, 9.7756)
Luminance0.0321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A59 #22591A
analogous
#311A59 #511A59 #591A41
triadic
#511A59 #59511A #1A5951
tetradic
#511A59 #59311A #22591A #1A4159
square
#511A59 #59311A #22591A #1A4159
split-complementary
#511A59 #41591A #1A5931
monochromatic
#160718 #260C2A #511A59 #7C2888 #A736B8

Accessibility & contrast

On white

12.79
#511A59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511A59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A59
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A59#FFFFFF#000000##FFFFFF
##511A591.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2E5B
Deuteranopia (green-blind)
#223457
Tritanopia (blue-blind)
#522437
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511a59;
/* rgb */ color: rgb(81, 26, 89);
/* oklch */ color: oklch(33.3% 0.119 322.4);
Tailwind
colors: {
  custom: {
    50: '#845b88',
    500: '#511a59',
    950: '#000000',
  },
}
SCSS
$custom: #511a59;
$custom-light: #845b88;
$custom-dark: #000000;
JSON
{
  "hex": "#511a59",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 89
  },
  "hsl": {
    "h": 292.381,
    "s": 54.783,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33301,
    "c": 0.11865,
    "h": 322.4
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#511A59
secondary
#4A8F40
accent
#DE4A5D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511A59

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

Preview Lab → · Contrast checker → · Palette generator →

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