#511490#511490

#511490 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.181 H 299.0°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#511490
RGBrgb(81, 20, 144)
HSLhsl(270, 76%, 32%)
HSVhsv(270, 86%, 56%)
CMYKcmyk(43.8%, 86.1%, 0%, 43.5%)
CIE-LABlab(24.52, 50.46, -55.39)
CIE-LCHlch(24.52, 74.93, 312.34°)
OKLaboklab(37.28% 0.0878 -0.1586)
OKLCHoklch(37.28% 0.181 299)
XYZxyz(8.6762, 4.2631, 26.7459)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511490 #539014
analogous
#141590 #511490 #8F1490
triadic
#511490 #905114 #149051
tetradic
#511490 #901415 #539014 #14908F
square
#511490 #901415 #539014 #14908F
split-complementary
#511490 #908F14 #159014
monochromatic
#150525 #330D5A #511490 #6F1BC6 #8E3BE4

Accessibility & contrast

On white

11.34
#511490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#511490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511490
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511490#FFFFFF#000000##FFFFFF
##5114901.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00398E
Tritanopia (blue-blind)
#413955
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511490;
/* rgb */ color: rgb(81, 20, 144);
/* oklch */ color: oklch(37.3% 0.181 299.0);
Tailwind
colors: {
  custom: {
    50: '#895cb2',
    500: '#511490',
    950: '#000000',
  },
}
SCSS
$custom: #511490;
$custom-light: #895cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#511490",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 144
  },
  "hsl": {
    "h": 269.516,
    "s": 75.61,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37275,
    "c": 0.18127,
    "h": 299
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#511490
secondary
#81C33D
accent
#F23695
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #511490

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

Preview Lab → · Contrast checker → · Palette generator →

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