#511B6B#511B6B

#511B6B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.136 H 312.4°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#511B6B
RGBrgb(81, 27, 107)
HSLhsl(281, 60%, 26%)
HSVhsv(281, 75%, 42%)
CMYKcmyk(24.3%, 74.8%, 0%, 58%)
CIE-LABlab(22.28, 38.81, -35.56)
CIE-LCHlch(22.28, 52.64, 317.50°)
OKLaboklab(34.72% 0.0916 -0.1004)
OKLCHoklch(34.72% 0.136 312.4)
XYZxyz(6.4386, 3.5949, 14.2618)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B6B #356B1B
analogous
#291B6B #511B6B #6B1B5D
triadic
#511B6B #6B511B #1B6B51
tetradic
#511B6B #6B291B #356B1B #1B5D6B
square
#511B6B #6B291B #356B1B #1B5D6B
split-complementary
#511B6B #5D6B1B #1B6B29
monochromatic
#120618 #2C0F3A #511B6B #76279C #9B35CC

Accessibility & contrast

On white

12.22
#511B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B6B
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B6B#FFFFFF#000000##FFFFFF
##511B6B1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#123669
Tritanopia (blue-blind)
#4E2C41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511b6b;
/* rgb */ color: rgb(81, 27, 107);
/* oklch */ color: oklch(34.7% 0.136 312.4);
Tailwind
colors: {
  custom: {
    50: '#855d96',
    500: '#511b6b',
    950: '#000000',
  },
}
SCSS
$custom: #511b6b;
$custom-light: #855d96;
$custom-dark: #000000;
JSON
{
  "hex": "#511b6b",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 107
  },
  "hsl": {
    "h": 280.5,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34719,
    "c": 0.13591,
    "h": 312.4
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#511B6B
secondary
#60A042
accent
#E34578
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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