#511789#511789

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

Color values

HEX#511789
RGBrgb(81, 23, 137)
HSLhsl(271, 71%, 31%)
HSVhsv(271, 83%, 54%)
CMYKcmyk(40.9%, 83.2%, 0%, 46.3%)
CIE-LABlab(24.22, 47.70, -51.53)
CIE-LCHlch(24.22, 70.21, 312.79°)
OKLaboklab(36.86% 0.0881 -0.1473)
OKLCHoklch(36.86% 0.172 300.9)
XYZxyz(8.2140, 4.1682, 24.0339)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511789 #4F8917
analogous
#181789 #511789 #891788
triadic
#511789 #895117 #178951
tetradic
#511789 #891817 #4F8917 #178889
square
#511789 #891817 #4F8917 #178889
split-complementary
#511789 #888917 #178918
monochromatic
#130520 #320E55 #511789 #7020BD #8F3CDE

Accessibility & contrast

On white

11.45
#511789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#511789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511789
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511789#FFFFFF#000000##FFFFFF
##5117891.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511789;
/* rgb */ color: rgb(81, 23, 137);
/* oklch */ color: oklch(36.9% 0.172 300.9);
Tailwind
colors: {
  custom: {
    50: '#885dac',
    500: '#511789',
    950: '#000000',
  },
}
SCSS
$custom: #511789;
$custom-light: #885dac;
$custom-dark: #000000;
JSON
{
  "hex": "#511789",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 270.526,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36863,
    "c": 0.17166,
    "h": 300.9
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#511789
secondary
#7DBD3F
accent
#EE3A92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #511789

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

Preview Lab → · Contrast checker → · Palette generator →

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