#511A74#511A74

#511A74 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.147 H 308.4°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#511A74
RGBrgb(81, 26, 116)
HSLhsl(277, 63%, 28%)
HSVhsv(277, 78%, 45%)
CMYKcmyk(30.2%, 77.6%, 0%, 54.5%)
CIE-LABlab(22.82, 41.38, -40.50)
CIE-LCHlch(22.82, 57.90, 315.62°)
OKLaboklab(35.32% 0.0911 -0.1149)
OKLCHoklch(35.32% 0.147 308.4)
XYZxyz(6.9145, 3.7492, 16.8790)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A74 #3D741A
analogous
#241A74 #511A74 #741A6A
triadic
#511A74 #74511A #1A7451
tetradic
#511A74 #74241A #3D741A #1A6A74
square
#511A74 #74241A #3D741A #1A6A74
split-complementary
#511A74 #6A741A #1A7424
monochromatic
#110619 #2E0F42 #511A74 #7425A6 #9536D2

Accessibility & contrast

On white

12.00
#511A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A74
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A74#FFFFFF#000000##FFFFFF
##511A741.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#4B2F46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511a74;
/* rgb */ color: rgb(81, 26, 116);
/* oklch */ color: oklch(35.3% 0.147 308.4);
Tailwind
colors: {
  custom: {
    50: '#865d9d',
    500: '#511a74',
    950: '#000000',
  },
}
SCSS
$custom: #511a74;
$custom-light: #865d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511a74",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 276.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35323,
    "c": 0.14668,
    "h": 308.4
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#511A74
secondary
#69A941
accent
#E64182
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511A74

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

Preview Lab → · Contrast checker → · Palette generator →

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