#511B89#511B89

#511B89 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.168 H 300.4°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#511B89
RGBrgb(81, 27, 137)
HSLhsl(269, 67%, 32%)
HSVhsv(269, 80%, 54%)
CMYKcmyk(40.9%, 80.3%, 0%, 46.3%)
CIE-LABlab(24.76, 46.12, -50.64)
CIE-LCHlch(24.76, 68.49, 312.33°)
OKLaboklab(37.24% 0.0849 -0.1447)
OKLCHoklch(37.24% 0.168 300.4)
XYZxyz(8.2995, 4.3393, 24.0624)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B89 #53891B
analogous
#1B1C89 #511B89 #881B89
triadic
#511B89 #89511B #1B8951
tetradic
#511B89 #891B1C #53891B #1B8988
square
#511B89 #891B1C #53891B #1B8988
split-complementary
#511B89 #89881B #1C891B
monochromatic
#150723 #331156 #511B89 #6F25BC #8E44DA

Accessibility & contrast

On white

11.24
#511B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#511B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B89
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B89#FFFFFF#000000##FFFFFF
##511B891.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#443952
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511b89;
/* rgb */ color: rgb(81, 27, 137);
/* oklch */ color: oklch(37.2% 0.168 300.4);
Tailwind
colors: {
  custom: {
    50: '#885eac',
    500: '#511b89',
    950: '#000000',
  },
}
SCSS
$custom: #511b89;
$custom-light: #885eac;
$custom-dark: #000000;
JSON
{
  "hex": "#511b89",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 269.455,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37241,
    "c": 0.16781,
    "h": 300.4
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

primary
#511B89
secondary
#81BC44
accent
#EA3E95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511B89

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

Preview Lab → · Contrast checker → · Palette generator →

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