#511689#511689

#511689 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.173 H 301.0°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#511689
RGBrgb(81, 22, 137)
HSLhsl(271, 72%, 31%)
HSVhsv(271, 84%, 54%)
CMYKcmyk(40.9%, 83.9%, 0%, 46.3%)
CIE-LABlab(24.09, 48.06, -51.73)
CIE-LCHlch(24.09, 70.61, 312.90°)
OKLaboklab(36.78% 0.0889 -0.1479)
OKLCHoklch(36.78% 0.173 301)
XYZxyz(8.1945, 4.1292, 24.0274)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511689 #4E8916
analogous
#181689 #511689 #891687
triadic
#511689 #895116 #168951
tetradic
#511689 #891816 #4E8916 #168789
square
#511689 #891816 #4E8916 #168789
split-complementary
#511689 #878916 #168918
monochromatic
#130520 #320E54 #511689 #701EBE #8F3ADF

Accessibility & contrast

On white

11.50
#511689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511689
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511689#FFFFFF#000000##FFFFFF
##5116891.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511689;
/* rgb */ color: rgb(81, 22, 137);
/* oklch */ color: oklch(36.8% 0.173 301.0);
Tailwind
colors: {
  custom: {
    50: '#885cac',
    500: '#511689',
    950: '#000000',
  },
}
SCSS
$custom: #511689;
$custom-light: #885cac;
$custom-dark: #000000;
JSON
{
  "hex": "#511689",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 270.783,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36776,
    "c": 0.17255,
    "h": 301
  },
  "luminance": 0.04129
}

Semantic roles & 50–950 ramp

primary
#511689
secondary
#7CBD3E
accent
#EF3992
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #511689

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

Preview Lab → · Contrast checker → · Palette generator →

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