#511888#511888

#511888 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.170 H 301.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#511888
RGBrgb(81, 24, 136)
HSLhsl(271, 70%, 31%)
HSVhsv(271, 82%, 53%)
CMYKcmyk(40.4%, 82.4%, 0%, 46.7%)
CIE-LABlab(24.26, 47.07, -50.84)
CIE-LCHlch(24.26, 69.28, 312.80°)
OKLaboklab(36.86% 0.0877 -0.1453)
OKLCHoklch(36.86% 0.17 301.1)
XYZxyz(8.1628, 4.1801, 23.6646)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511888 #4F8818
analogous
#191888 #511888 #881887
triadic
#511888 #885118 #188851
tetradic
#511888 #881918 #4F8818 #188788
square
#511888 #881918 #4F8818 #188788
split-complementary
#511888 #878818 #188819
monochromatic
#130620 #320F54 #511888 #7021BC #8F3EDD

Accessibility & contrast

On white

11.44
#511888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#511888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511888
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511888#FFFFFF#000000##FFFFFF
##5118881.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#443751
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511888;
/* rgb */ color: rgb(81, 24, 136);
/* oklch */ color: oklch(36.9% 0.170 301.1);
Tailwind
colors: {
  custom: {
    50: '#885dac',
    500: '#511888',
    950: '#000000',
  },
}
SCSS
$custom: #511888;
$custom-light: #885dac;
$custom-dark: #000000;
JSON
{
  "hex": "#511888",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 270.536,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36861,
    "c": 0.16971,
    "h": 301.1
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#511888
secondary
#7DBC40
accent
#ED3B92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511888

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

Preview Lab → · Contrast checker → · Palette generator →

#511888 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva