#511D88#511D88

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

Color values

HEX#511D88
RGBrgb(81, 29, 136)
HSLhsl(269, 65%, 32%)
HSVhsv(269, 79%, 53%)
CMYKcmyk(40.4%, 78.7%, 0%, 46.7%)
CIE-LABlab(24.97, 45.02, -49.67)
CIE-LCHlch(24.97, 67.04, 312.18°)
OKLaboklab(37.36% 0.0835 -0.1419)
OKLCHoklch(37.36% 0.165 300.5)
XYZxyz(8.2755, 4.4056, 23.7021)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D88 #54881D
analogous
#1D1F88 #511D88 #871D88
triadic
#511D88 #88511D #1D8851
tetradic
#511D88 #881D1F #54881D #1D8887
square
#511D88 #881D1F #54881D #1D8887
split-complementary
#511D88 #88871D #1F881D
monochromatic
#150723 #331256 #511D88 #6F28BA #8E48D8

Accessibility & contrast

On white

11.16
#511D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D88
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D88#FFFFFF#000000##FFFFFF
##511D881.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511d88;
/* rgb */ color: rgb(81, 29, 136);
/* oklch */ color: oklch(37.4% 0.165 300.5);
Tailwind
colors: {
  custom: {
    50: '#885fac',
    500: '#511d88',
    950: '#000000',
  },
}
SCSS
$custom: #511d88;
$custom-light: #885fac;
$custom-dark: #000000;
JSON
{
  "hex": "#511d88",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 269.159,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.16466,
    "h": 300.5
  },
  "luminance": 0.04406
}

Semantic roles & 50–950 ramp

primary
#511D88
secondary
#82BA47
accent
#E84096
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511D88

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

Preview Lab → · Contrast checker → · Palette generator →

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