#511A73#511A73

#511A73 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.146 H 308.8°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#511A73
RGBrgb(81, 26, 115)
HSLhsl(277, 63%, 28%)
HSVhsv(277, 77%, 45%)
CMYKcmyk(29.6%, 77.4%, 0%, 54.9%)
CIE-LABlab(22.74, 41.14, -39.99)
CIE-LCHlch(22.74, 57.37, 315.82°)
OKLaboklab(35.24% 0.0913 -0.1134)
OKLCHoklch(35.24% 0.146 308.8)
XYZxyz(6.8566, 3.7260, 16.5743)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A73 #3C731A
analogous
#251A73 #511A73 #731A68
triadic
#511A73 #73511A #1A7351
tetradic
#511A73 #73251A #3C731A #1A6873
square
#511A73 #73251A #3C731A #1A6873
split-complementary
#511A73 #68731A #1A7325
monochromatic
#120619 #2E0F41 #511A73 #7425A5 #9636D2

Accessibility & contrast

On white

12.03
#511A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#511A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A73
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A73#FFFFFF#000000##FFFFFF
##511A731.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#003771
Tritanopia (blue-blind)
#4C2F45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511a73;
/* rgb */ color: rgb(81, 26, 115);
/* oklch */ color: oklch(35.2% 0.146 308.8);
Tailwind
colors: {
  custom: {
    50: '#865d9c',
    500: '#511a73',
    950: '#000000',
  },
}
SCSS
$custom: #511a73;
$custom-light: #865d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#511a73",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 277.079,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35241,
    "c": 0.14563,
    "h": 308.8
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

primary
#511A73
secondary
#68A841
accent
#E64280
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511A73

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

Preview Lab → · Contrast checker → · Palette generator →

#511A73 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva