#511190#511190

#511190 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.183 H 299.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#511190
RGBrgb(81, 17, 144)
HSLhsl(270, 79%, 32%)
HSVhsv(270, 88%, 56%)
CMYKcmyk(43.8%, 88.2%, 0%, 43.5%)
CIE-LABlab(24.21, 51.40, -55.91)
CIE-LCHlch(24.21, 75.95, 312.59°)
OKLaboklab(37.06% 0.0896 -0.1601)
OKLCHoklch(37.06% 0.183 299.2)
XYZxyz(8.6265, 4.1637, 26.7293)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511190 #509011
analogous
#111190 #511190 #901190
triadic
#511190 #905111 #119051
tetradic
#511190 #901111 #509011 #119090
square
#511190 #901111 #509011 #119090
split-complementary
#511190 #909011 #119011
monochromatic
#130423 #320B59 #511190 #7017C7 #8E34E7

Accessibility & contrast

On white

11.46
#511190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511190
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511190#FFFFFF#000000##FFFFFF
##5111901.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00388E
Tritanopia (blue-blind)
#413854
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511190;
/* rgb */ color: rgb(81, 17, 144);
/* oklch */ color: oklch(37.1% 0.183 299.2);
Tailwind
colors: {
  custom: {
    50: '#895bb2',
    500: '#511190',
    950: '#000000',
  },
}
SCSS
$custom: #511190;
$custom-light: #895bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#511190",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 144
  },
  "hsl": {
    "h": 270.236,
    "s": 78.882,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37057,
    "c": 0.18345,
    "h": 299.2
  },
  "luminance": 0.04164
}

Semantic roles & 50–950 ramp

primary
#511190
secondary
#7EC439
accent
#F53293
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #511190

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

Preview Lab → · Contrast checker → · Palette generator →

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