#511B8B#511B8B

#511B8B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.170 H 299.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#511B8B
RGBrgb(81, 27, 139)
HSLhsl(269, 67%, 33%)
HSVhsv(269, 81%, 55%)
CMYKcmyk(41.7%, 80.6%, 0%, 45.5%)
CIE-LABlab(24.94, 46.63, -51.59)
CIE-LCHlch(24.94, 69.54, 312.11°)
OKLaboklab(37.42% 0.0844 -0.1475)
OKLCHoklch(37.42% 0.17 299.8)
XYZxyz(8.4443, 4.3972, 24.8249)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B8B #558B1B
analogous
#1B1D8B #511B8B #891B8B
triadic
#511B8B #8B511B #1B8B51
tetradic
#511B8B #8B1B1D #558B1B #1B8B89
square
#511B8B #8B1B1D #558B1B #1B8B89
split-complementary
#511B8B #8B891B #1D8B1B
monochromatic
#150725 #331158 #511B8B #6F25BE #8E45DB

Accessibility & contrast

On white

11.17
#511B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#511B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B8B
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B8B#FFFFFF#000000##FFFFFF
##511B8B1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#433A53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511b8b;
/* rgb */ color: rgb(81, 27, 139);
/* oklch */ color: oklch(37.4% 0.170 299.8);
Tailwind
colors: {
  custom: {
    50: '#885eae',
    500: '#511b8b',
    950: '#000000',
  },
}
SCSS
$custom: #511b8b;
$custom-light: #885eae;
$custom-dark: #000000;
JSON
{
  "hex": "#511b8b",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 268.929,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37422,
    "c": 0.16994,
    "h": 299.8
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#511B8B
secondary
#83BC45
accent
#EA3D97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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