#511B6C#511B6C

#511B6C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.137 H 311.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#511B6C
RGBrgb(81, 27, 108)
HSLhsl(280, 60%, 26%)
HSVhsv(280, 75%, 42%)
CMYKcmyk(25%, 75%, 0%, 57.6%)
CIE-LABlab(22.36, 39.04, -36.09)
CIE-LCHlch(22.36, 53.17, 317.25°)
OKLaboklab(34.8% 0.0914 -0.102)
OKLCHoklch(34.8% 0.137 311.9)
XYZxyz(6.4915, 3.6161, 14.5405)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B6C #366C1B
analogous
#291B6C #511B6C #6C1B5F
triadic
#511B6C #6C511B #1B6C51
tetradic
#511B6C #6C291B #366C1B #1B5F6C
square
#511B6C #6C291B #366C1B #1B5F6C
split-complementary
#511B6C #5F6C1B #1B6C29
monochromatic
#120618 #2C0F3B #511B6C #76279D #9A35CC

Accessibility & contrast

On white

12.19
#511B6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511B6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B6C
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B6C#FFFFFF#000000##FFFFFF
##511B6C1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#11366A
Tritanopia (blue-blind)
#4E2D41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511b6c;
/* rgb */ color: rgb(81, 27, 108);
/* oklch */ color: oklch(34.8% 0.137 311.9);
Tailwind
colors: {
  custom: {
    50: '#855d97',
    500: '#511b6c',
    950: '#000000',
  },
}
SCSS
$custom: #511b6c;
$custom-light: #855d97;
$custom-dark: #000000;
JSON
{
  "hex": "#511b6c",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 280,
    "s": 60,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34796,
    "c": 0.13697,
    "h": 311.9
  },
  "luminance": 0.03616
}

Semantic roles & 50–950 ramp

primary
#511B6C
secondary
#62A142
accent
#E34579
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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