#511495#511495

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

Color values

HEX#511495
RGBrgb(81, 20, 149)
HSLhsl(268, 76%, 33%)
HSVhsv(268, 87%, 58%)
CMYKcmyk(45.6%, 86.6%, 0%, 41.6%)
CIE-LABlab(25.01, 51.68, -57.68)
CIE-LCHlch(25.01, 77.45, 311.86°)
OKLaboklab(37.76% 0.0859 -0.1653)
OKLCHoklch(37.76% 0.186 297.4)
XYZxyz(9.0669, 4.4194, 28.8033)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511495 #589514
analogous
#141895 #511495 #911495
triadic
#511495 #955114 #149551
tetradic
#511495 #951418 #589514 #149591
square
#511495 #951418 #589514 #149591
split-complementary
#511495 #959114 #189514
monochromatic
#160629 #340D5F #511495 #6E1BCB #8D3EE5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511495#FFFFFF#000000##FFFFFF
##5114951.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)
#003C98
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#3F3B58
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511495;
/* rgb */ color: rgb(81, 20, 149);
/* oklch */ color: oklch(37.8% 0.186 297.4);
Tailwind
colors: {
  custom: {
    50: '#8a5cb5',
    500: '#511495',
    950: '#000000',
  },
}
SCSS
$custom: #511495;
$custom-light: #8a5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#511495",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 149
  },
  "hsl": {
    "h": 268.372,
    "s": 76.331,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37759,
    "c": 0.18629,
    "h": 297.4
  },
  "luminance": 0.0442
}

Semantic roles & 50–950 ramp

primary
#511495
secondary
#86C540
accent
#F33599
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #511495

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

Preview Lab → · Contrast checker → · Palette generator →

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