#511473#511473

#511473 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.152 H 309.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#511473
RGBrgb(81, 20, 115)
HSLhsl(279, 70%, 26%)
HSVhsv(279, 83%, 45%)
CMYKcmyk(29.6%, 82.6%, 0%, 54.9%)
CIE-LABlab(21.90, 43.57, -41.36)
CIE-LCHlch(21.90, 60.07, 316.49°)
OKLaboklab(34.65% 0.097 -0.1174)
OKLCHoklch(34.65% 0.152 309.6)
XYZxyz(6.7374, 3.4876, 16.5346)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511473 #367314
analogous
#221473 #511473 #731466
triadic
#511473 #735114 #147351
tetradic
#511473 #732214 #367314 #146673
square
#511473 #732214 #367314 #146673
split-complementary
#511473 #667314 #147322
monochromatic
#12051A #2C0B3F #511473 #761DA7 #9A28DA

Accessibility & contrast

On white

12.37
#511473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511473 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511473
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511473#FFFFFF#000000##FFFFFF
##5114731.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#4C2C44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511473;
/* rgb */ color: rgb(81, 20, 115);
/* oklch */ color: oklch(34.6% 0.152 309.6);
Tailwind
colors: {
  custom: {
    50: '#865a9c',
    500: '#511473',
    950: '#000000',
  },
}
SCSS
$custom: #511473;
$custom-light: #865a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#511473",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 115
  },
  "hsl": {
    "h": 278.526,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34647,
    "c": 0.1523,
    "h": 309.6
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#511473
secondary
#62A93A
accent
#ED3B7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511473

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

Preview Lab → · Contrast checker → · Palette generator →

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