#511A58#511A58

#511A58 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.2% C 0.118 H 323.0°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#511A58
RGBrgb(81, 26, 88)
HSLhsl(293, 54%, 22%)
HSVhsv(293, 70%, 35%)
CMYKcmyk(8%, 70.5%, 0%, 65.5%)
CIE-LABlab(20.80, 35.05, -25.43)
CIE-LCHlch(20.80, 43.30, 324.04°)
OKLaboklab(33.23% 0.094 -0.0708)
OKLCHoklch(33.23% 0.118 323)
XYZxyz(5.5240, 3.1930, 9.5560)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A58 #21581A
analogous
#321A58 #511A58 #581A40
triadic
#511A58 #58511A #1A5851
tetradic
#511A58 #58321A #21581A #1A4058
square
#511A58 #58321A #21581A #1A4058
split-complementary
#511A58 #40581A #1A5832
monochromatic
#160718 #260C29 #511A58 #7C2887 #A836B6

Accessibility & contrast

On white

12.82
#511A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A58
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A58#FFFFFF#000000##FFFFFF
##511A581.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2E5A
Deuteranopia (green-blind)
#233456
Tritanopia (blue-blind)
#522436
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511a58;
/* rgb */ color: rgb(81, 26, 88);
/* oklch */ color: oklch(33.2% 0.118 323.0);
Tailwind
colors: {
  custom: {
    50: '#845b87',
    500: '#511a58',
    950: '#000000',
  },
}
SCSS
$custom: #511a58;
$custom-light: #845b87;
$custom-dark: #000000;
JSON
{
  "hex": "#511a58",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 293.226,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33234,
    "c": 0.11764,
    "h": 323
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#511A58
secondary
#498E40
accent
#DE4A5B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511A58

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

Preview Lab → · Contrast checker → · Palette generator →

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