#511173#511173

#511173 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.155 H 309.9°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#511173
RGBrgb(81, 17, 115)
HSLhsl(279, 74%, 26%)
HSVhsv(279, 85%, 45%)
CMYKcmyk(29.6%, 85.2%, 0%, 54.9%)
CIE-LABlab(21.54, 44.63, -41.95)
CIE-LCHlch(21.54, 61.25, 316.77°)
OKLaboklab(34.39% 0.0995 -0.1191)
OKLCHoklch(34.39% 0.155 309.9)
XYZxyz(6.6877, 3.3882, 16.5180)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511173 #337311
analogous
#201173 #511173 #731164
triadic
#511173 #735111 #117351
tetradic
#511173 #732011 #337311 #116473
square
#511173 #732011 #337311 #116473
split-complementary
#511173 #647311 #117320
monochromatic
#13041B #2B093E #511173 #7719A8 #9C21DE

Accessibility & contrast

On white

12.52
#511173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511173
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511173#FFFFFF#000000##FFFFFF
##5111731.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#4C2B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511173;
/* rgb */ color: rgb(81, 17, 115);
/* oklch */ color: oklch(34.4% 0.155 309.9);
Tailwind
colors: {
  custom: {
    50: '#86599c',
    500: '#511173',
    950: '#000000',
  },
}
SCSS
$custom: #511173;
$custom-light: #86599c;
$custom-dark: #000000;
JSON
{
  "hex": "#511173",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 279.184,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34393,
    "c": 0.1552,
    "h": 309.9
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#511173
secondary
#5EAA36
accent
#F13777
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511173

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

Preview Lab → · Contrast checker → · Palette generator →

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