#511890#511890

#511890 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.178 H 298.5°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#511890
RGBrgb(81, 24, 144)
HSLhsl(269, 71%, 33%)
HSVhsv(269, 83%, 56%)
CMYKcmyk(43.8%, 83.3%, 0%, 43.5%)
CIE-LABlab(25.00, 49.06, -54.60)
CIE-LCHlch(25.00, 73.40, 311.94°)
OKLaboklab(37.6% 0.0851 -0.1563)
OKLCHoklch(37.6% 0.178 298.5)
XYZxyz(8.7527, 4.4161, 26.7714)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511890 #579018
analogous
#181B90 #511890 #8D1890
triadic
#511890 #905118 #189051
tetradic
#511890 #90181B #579018 #18908D
square
#511890 #90181B #579018 #18908D
split-complementary
#511890 #908D18 #1B9018
monochromatic
#160727 #330F5C #511890 #6F21C4 #8D43E0

Accessibility & contrast

On white

11.15
#511890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#511890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511890
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511890#FFFFFF#000000##FFFFFF
##5118901.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#003A8E
Tritanopia (blue-blind)
#413B55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511890;
/* rgb */ color: rgb(81, 24, 144);
/* oklch */ color: oklch(37.6% 0.178 298.5);
Tailwind
colors: {
  custom: {
    50: '#895db2',
    500: '#511890',
    950: '#000000',
  },
}
SCSS
$custom: #511890;
$custom-light: #895db2;
$custom-dark: #000000;
JSON
{
  "hex": "#511890",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 144
  },
  "hsl": {
    "h": 268.5,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37605,
    "c": 0.17798,
    "h": 298.5
  },
  "luminance": 0.04416
}

Semantic roles & 50–950 ramp

primary
#511890
secondary
#85C043
accent
#EE3A98
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511890

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

Preview Lab → · Contrast checker → · Palette generator →

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