#511B5E#511B5E

#511B5E is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.122 H 319.3°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#511B5E
RGBrgb(81, 27, 94)
HSLhsl(288, 55%, 24%)
HSVhsv(288, 71%, 37%)
CMYKcmyk(13.8%, 71.3%, 0%, 63.1%)
CIE-LABlab(21.36, 35.86, -28.52)
CIE-LCHlch(21.36, 45.82, 321.50°)
OKLaboklab(33.77% 0.0926 -0.0798)
OKLCHoklch(33.77% 0.122 319.3)
XYZxyz(5.8054, 3.3416, 10.9267)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B5E #285E1B
analogous
#2F1B5E #511B5E #5E1B49
triadic
#511B5E #5E511B #1B5E51
tetradic
#511B5E #5E2F1B #285E1B #1B495E
square
#511B5E #5E2F1B #285E1B #1B495E
split-complementary
#511B5E #495E1B #1B5E2F
monochromatic
#140718 #280D2E #511B5E #7A298E #A336BD

Accessibility & contrast

On white

12.59
#511B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511B5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B5E
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B5E#FFFFFF#000000##FFFFFF
##511B5E1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043060
Deuteranopia (green-blind)
#20355C
Tritanopia (blue-blind)
#51273A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511b5e;
/* rgb */ color: rgb(81, 27, 94);
/* oklch */ color: oklch(33.8% 0.122 319.3);
Tailwind
colors: {
  custom: {
    50: '#845c8c',
    500: '#511b5e',
    950: '#000000',
  },
}
SCSS
$custom: #511b5e;
$custom-light: #845c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#511b5e",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 288.358,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.12227,
    "h": 319.3
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#511B5E
secondary
#519441
accent
#DF4966
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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