#511B58#511B58

#511B58 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.4% C 0.116 H 322.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#511B58
RGBrgb(81, 27, 88)
HSLhsl(293, 53%, 23%)
HSVhsv(293, 69%, 35%)
CMYKcmyk(8%, 69.3%, 0%, 65.5%)
CIE-LABlab(20.97, 34.57, -25.16)
CIE-LCHlch(20.97, 42.76, 323.96°)
OKLaboklab(33.36% 0.0927 -0.07)
OKLCHoklch(33.36% 0.116 322.9)
XYZxyz(5.5466, 3.2381, 9.5635)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B58 #22581B
analogous
#331B58 #511B58 #581B40
triadic
#511B58 #58511B #1B5851
tetradic
#511B58 #58331B #22581B #1B4058
square
#511B58 #58331B #22581B #1B4058
split-complementary
#511B58 #40581B #1B5833
monochromatic
#160717 #260D29 #511B58 #7C2987 #A738B6

Accessibility & contrast

On white

12.75
#511B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B58
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B58#FFFFFF#000000##FFFFFF
##511B581.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2E5A
Deuteranopia (green-blind)
#243556
Tritanopia (blue-blind)
#522537
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511b58;
/* rgb */ color: rgb(81, 27, 88);
/* oklch */ color: oklch(33.4% 0.116 322.9);
Tailwind
colors: {
  custom: {
    50: '#845c87',
    500: '#511b58',
    950: '#000000',
  },
}
SCSS
$custom: #511b58;
$custom-light: #845c87;
$custom-dark: #000000;
JSON
{
  "hex": "#511b58",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 293.115,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33359,
    "c": 0.11612,
    "h": 322.9
  },
  "luminance": 0.03238
}

Semantic roles & 50–950 ramp

primary
#511B58
secondary
#4A8E41
accent
#DC4B5C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511B58

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

Preview Lab → · Contrast checker → · Palette generator →

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