#511B6A#511B6A

#511B6A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.135 H 312.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#511B6A
RGBrgb(81, 27, 106)
HSLhsl(281, 59%, 26%)
HSVhsv(281, 75%, 42%)
CMYKcmyk(23.6%, 74.5%, 0%, 58.4%)
CIE-LABlab(22.21, 38.57, -35.03)
CIE-LCHlch(22.21, 52.11, 317.75°)
OKLaboklab(34.64% 0.0917 -0.0989)
OKLCHoklch(34.64% 0.135 312.8)
XYZxyz(6.3863, 3.5740, 13.9863)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B6A #346A1B
analogous
#291B6A #511B6A #6A1B5B
triadic
#511B6A #6A511B #1B6A51
tetradic
#511B6A #6A291B #346A1B #1B5B6A
square
#511B6A #6A291B #346A1B #1B5B6A
split-complementary
#511B6A #5B6A1B #1B6A29
monochromatic
#130618 #2C0F39 #511B6A #76279B #9B34CB

Accessibility & contrast

On white

12.25
#511B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B6A
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B6A#FFFFFF#000000##FFFFFF
##511B6A1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#143668
Tritanopia (blue-blind)
#4E2C40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511b6a;
/* rgb */ color: rgb(81, 27, 106);
/* oklch */ color: oklch(34.6% 0.135 312.8);
Tailwind
colors: {
  custom: {
    50: '#855d95',
    500: '#511b6a',
    950: '#000000',
  },
}
SCSS
$custom: #511b6a;
$custom-light: #855d95;
$custom-dark: #000000;
JSON
{
  "hex": "#511b6a",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 281.013,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34643,
    "c": 0.13485,
    "h": 312.8
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#511B6A
secondary
#5F9F42
accent
#E34577
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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