#511990#511990

#511990 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.177 H 298.4°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#511990
RGBrgb(81, 25, 144)
HSLhsl(268, 70%, 33%)
HSVhsv(268, 83%, 56%)
CMYKcmyk(43.8%, 82.6%, 0%, 43.5%)
CIE-LABlab(25.13, 48.68, -54.39)
CIE-LCHlch(25.13, 72.99, 311.83°)
OKLaboklab(37.7% 0.0843 -0.1557)
OKLCHoklch(37.7% 0.177 298.4)
XYZxyz(8.7737, 4.4581, 26.7784)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511990 #589019
analogous
#191D90 #511990 #8C1990
triadic
#511990 #905119 #199051
tetradic
#511990 #90191D #589019 #19908C
square
#511990 #90191D #589019 #19908C
split-complementary
#511990 #908C19 #1D9019
monochromatic
#160728 #34105C #511990 #6E22C4 #8D45DF

Accessibility & contrast

On white

11.10
#511990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#511990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511990
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511990#FFFFFF#000000##FFFFFF
##5119901.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511990;
/* rgb */ color: rgb(81, 25, 144);
/* oklch */ color: oklch(37.7% 0.177 298.4);
Tailwind
colors: {
  custom: {
    50: '#895eb2',
    500: '#511990',
    950: '#000000',
  },
}
SCSS
$custom: #511990;
$custom-light: #895eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#511990",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 268.235,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37695,
    "c": 0.17709,
    "h": 298.4
  },
  "luminance": 0.04458
}

Semantic roles & 50–950 ramp

primary
#511990
secondary
#86C045
accent
#ED3B99
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511990

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

Preview Lab → · Contrast checker → · Palette generator →

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