#511987#511987

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

Color values

HEX#511987
RGBrgb(81, 25, 135)
HSLhsl(271, 69%, 31%)
HSVhsv(271, 81%, 53%)
CMYKcmyk(40%, 81.5%, 0%, 47.1%)
CIE-LABlab(24.30, 46.43, -50.14)
CIE-LCHlch(24.30, 68.34, 312.80°)
OKLaboklab(36.86% 0.0872 -0.1432)
OKLCHoklch(36.86% 0.168 301.3)
XYZxyz(8.1131, 4.1938, 23.2990)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511987 #4F8719
analogous
#1A1987 #511987 #871986
triadic
#511987 #875119 #198751
tetradic
#511987 #871A19 #4F8719 #198687
square
#511987 #871A19 #4F8719 #198687
split-complementary
#511987 #868719 #19871A
monochromatic
#130620 #320F53 #511987 #7023BB #8F3FDB

Accessibility & contrast

On white

11.42
#511987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511987
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511987#FFFFFF#000000##FFFFFF
##5119871.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#453750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511987;
/* rgb */ color: rgb(81, 25, 135);
/* oklch */ color: oklch(36.9% 0.168 301.3);
Tailwind
colors: {
  custom: {
    50: '#885dab',
    500: '#511987',
    950: '#000000',
  },
}
SCSS
$custom: #511987;
$custom-light: #885dab;
$custom-dark: #000000;
JSON
{
  "hex": "#511987",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 270.545,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36864,
    "c": 0.1677,
    "h": 301.3
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#511987
secondary
#7DBA41
accent
#EC3C92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511987

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

Preview Lab → · Contrast checker → · Palette generator →

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